Marcus Holland-Moritz
964a4f49e6
refactor(file_stat): turn into proper object with hidden data
2024-07-31 22:36:13 +02:00
Marcus Holland-Moritz
1dfeb2e7f9
refactor: delay file_stat errors
2024-07-31 18:27:21 +02:00
Marcus Holland-Moritz
522efd04f7
refactor: switch to using system includes for dwarfs headers
2024-05-22 14:56:08 +02:00
Marcus Holland-Moritz
407b75b28c
test: more os_access_mock features
2024-04-29 18:50:46 +02:00
Marcus Holland-Moritz
22c079a4ca
refactor: slightly sleeker variant matching
2024-01-26 17:48:14 +01:00
Marcus Holland-Moritz
5d1992d06b
refactor: replace gtest regexes with std::regex in tests
2024-01-23 15:16:07 +01:00
Marcus Holland-Moritz
047b9bed61
refactor(pager): make pager somewhat testable
2024-01-20 12:46:40 +01:00
Marcus Holland-Moritz
a1ab9502ed
refactor: more os_access abstraction, worker group tests
2024-01-20 12:46:40 +01:00
Marcus Holland-Moritz
6804aa0f75
refactor(test_helpers): argument name was a bit too specific
2024-01-16 18:21:28 +01:00
Marcus Holland-Moritz
2d4d8e79c9
fix: correctly handle delayed file access errors
2024-01-15 21:09:51 +01:00
Marcus Holland-Moritz
0446513c06
fix: make sure exceptions in worker threads produce an error message
2024-01-14 20:16:06 +01:00
Marcus Holland-Moritz
179cfb8928
fix(inode_manager): handle file mapping errors
2024-01-14 17:26:58 +01:00
Marcus Holland-Moritz
66533bad99
chore: try to make gmock regexes somewhat portable
2024-01-13 20:14:13 +01:00
Marcus Holland-Moritz
7e40b3c34d
test(block_cache): stress test with different configurations
2024-01-12 14:13:09 +01:00
Marcus Holland-Moritz
3e1d69ea2a
chore: support map_file
without size argument
2024-01-01 16:56:46 +01:00
Marcus Holland-Moritz
6d4153ca87
chore: add create_random_string() test helper
2023-12-30 20:13:17 +01:00
Marcus Holland-Moritz
ac3248f966
feat: add getenv() abstraction to os_access
2023-12-30 15:56:21 +01:00
Marcus Holland-Moritz
84b5b6f32a
refactor: add current_path() abstraction to os_access
2023-12-30 00:47:11 +01:00
Marcus Holland-Moritz
1ef2b61207
refactor: add canonical() to os_access
2023-12-28 19:02:52 +01:00
Marcus Holland-Moritz
7b2029674d
refactor: simplify calling *_main() from tests even more
2023-12-28 19:02:52 +01:00
Marcus Holland-Moritz
e461e167fc
test: new add_local_files test helper
2023-12-25 20:58:31 +01:00
Marcus Holland-Moritz
3dabe4d154
fix(entry): root path should only have a single slash (+tests)
2023-12-18 19:12:58 +01:00
Marcus Holland-Moritz
f5e97a3212
test: support adding files with random contents
2023-12-17 23:02:28 +01:00
Marcus Holland-Moritz
78c15ad028
Ownership cleanup
2023-12-17 22:58:51 +01:00
Marcus Holland-Moritz
b8d8246801
test: add mock_directory cache to avoid linear scans of large dirs
2023-10-29 08:26:40 +01:00
Marcus Holland-Moritz
5a17c877a3
More moving from std::string to fs::path
2023-06-26 10:53:56 +02:00
Marcus Holland-Moritz
2836a488ea
WIP: std::string -> fs::path
2023-06-26 00:34:42 +02:00
Marcus Holland-Moritz
056dab970b
More portability fixes
2023-06-22 17:16:50 +02:00
Marcus Holland-Moritz
1f8752fa23
More portability fixes
2023-06-22 17:05:32 +02:00
Marcus Holland-Moritz
b2a7a12159
More portability fixes
2023-06-22 16:53:50 +02:00
Marcus Holland-Moritz
fd157eb611
WIP file_stat
2023-06-22 00:15:26 +02:00
Marcus Holland-Moritz
ce9216f581
Add unreadable files as empty files (fixes gh #40 )
2022-11-16 12:30:17 +01:00
Marcus Holland-Moritz
6920df7334
Improved deduplication algorithm
...
Instead of hashing all files unconditionally, the new algorithm first
checks if there are multiple files of the same size. Files with a
unique size cannot have duplicates and so don't have to be hashed at
all.
2022-10-29 18:54:31 +02:00
Marcus Holland-Moritz
7c0b22d3bd
Fix ctors that were missing explicit keyword
2022-06-10 18:49:18 +02:00
Marcus Holland-Moritz
54b27f5662
Make os_access_mock more flexible
2021-05-03 12:53:45 +02:00
Marcus Holland-Moritz
fdc25fb1ac
Add small test suite for testing the fuse driver & binaries
2021-04-12 19:00:48 +02:00
Marcus Holland-Moritz
f87aa4a8cf
Factor out test helpers
2021-03-25 00:45:38 +01:00