Commit Graph

25 Commits

Author SHA1 Message Date
weisd a5bbce4920 fix filemeta/intofileversions 2025-06-06 11:46:51 +08:00
overtrue 8747a91df8 feat: add comprehensive formatting rules and type inference guidelines 2025-05-28 16:04:38 +08:00
安正超 af9bcde89f fix: resolve remaining Clippy warnings and add buffer length validation - Fixed read_bytes_header function by adding buffer length validation before split_at(5) - Added proper error handling for buffers smaller than 5 bytes - Fixed test_file_meta_read_bytes_header to use proper XL format data - All code now passes comprehensive Clippy check: cargo clippy --all-targets --all-features -- -D warnings - Improved code robustness and error handling in file metadata operations 2025-05-28 11:11:15 +08:00
安正超 a1f4abf6c3 fix: resolve all Clippy warnings across codebase - Fixed field reassignment warnings in ecstore/src/file_meta.rs by using struct initialization instead of default + field assignment - Fixed overly complex boolean expression in ecstore/src/utils/os/mod.rs by removing meaningless assertion - Replaced manual Default implementation with derive in crates/zip/src/lib.rs - Updated io::Error usage to use io::Error::other() instead of deprecated pattern - Removed useless assertions and clone-on-copy warnings - Fixed unwrap usage by replacing with expect() providing meaningful error messages - Fixed useless vec usage by using array repeat instead - All code now passes comprehensive Clippy check with --all-targets --all-features -- -D warnings 2025-05-28 11:00:07 +08:00
houseme ade4d33eb1 fix typo 2025-05-27 16:56:44 +08:00
houseme ca8f399832 format comment 2025-05-27 13:56:19 +08:00
安正超 61af17a4ec Merge pull request #415 from rustfs/feat/add-file-meta-tests
feat: add tests for file_meta.rs
2025-05-25 18:54:42 +08:00
overtrue ebbf3a7bc3 fix: correct test_read_xl_meta_no_data test data format 2025-05-25 18:50:32 +08:00
overtrue 7adc1ba09d feat: add comprehensive tests for file_meta.rs - Add 24 new test functions covering FileMeta, FileMetaVersion, and related structs - Test utility functions like load, check_xl2_v1, read_bytes_header - Test enum methods for VersionType, ErasureAlgo, ChecksumAlgo - Test FileMetaVersionHeader comparison and validation methods - Test MetaObject and MetaDeleteMarker serialization/deserialization - Test async functions like read_xl_meta_no_data and get_file_info - Add edge case tests for error handling and boundary conditions - Improve test coverage for complex file metadata operations 2025-05-25 18:19:15 +08:00
overtrue e4cc8ed5b9 fix: fix failing test cases in file_meta module - Fix test expectations to match actual function behavior - Update sort and latest_mod_time test logic - Add version_id to delete marker test 2025-05-25 18:13:21 +08:00
overtrue c14bf4b479 feat: add comprehensive tests for file_meta module - Add 24 new test functions covering FileMeta operations, validation, and edge cases 2025-05-25 18:07:31 +08:00
weisd d7cac5c727 Merge branch 'main' into dada/fix-entry 2025-05-09 14:33:30 +08:00
junxiang Mu 7a94363b38 improve speed
Signed-off-by: junxiang Mu <1948535941@qq.com>
2025-05-08 18:37:36 +08:00
weisd 750194e4dc test 2025-04-28 13:17:06 +08:00
weisd 59c008b0ee fix pool select idx 2025-04-22 09:07:43 +08:00
weisd 545ae79e44 move ecsotre/error to common 2025-03-25 17:42:15 +08:00
weisd dae6616720 fix add service_account 2025-02-25 00:39:19 +08:00
weisd 8b28e0869c sync s3s, fix #224 2025-02-19 15:17:58 +08:00
weisd dd0a744a3e fix: #137 #186 skip delete marker objects when list object 2024-12-31 16:57:01 +08:00
weisd 4195371a1e test_list_path_raw done 2024-12-17 14:28:37 +08:00
weisd 2786174ffb rewrite real_meta 2024-12-16 22:09:47 +08:00
weisd 4ccd69c782 clippy
clippy

clippy
2024-12-16 22:09:13 +08:00
weisd e39775bb34 notification_sys base 2024-12-04 10:55:09 +08:00
weisd c98e849621 fix clippy 2024-12-03 13:37:22 +08:00
weisd fc2c11d095 add filemeta 2024-12-03 11:04:36 +08:00