Commit Graph

520 Commits

Author SHA1 Message Date
Andrew Phillips (aider)
0dba671f8d fix: Fix CompressionType and compression module references in save mode 2025-05-12 17:19:45 -03:00
Andrew Phillips (aider)
ad922485d0 fix: Remove duplicate and unused imports in save mode 2025-05-12 17:18:33 -03:00
Andrew Phillips (aider)
ba6e27f708 fix: resolve unresolved compression engine imports 2025-05-12 17:17:42 -03:00
Andrew Phillips (aider)
71a35a77a0 fix: correct compression module imports 2025-05-12 17:16:52 -03:00
Andrew Phillips (aider)
1b109f0cf0 fix: rename compression module to compression_engine and remove unused imports 2025-05-12 17:15:35 -03:00
Andrew Phillips (aider)
66e61a4196 refactor: move compression types to compression_engine module 2025-05-12 17:12:17 -03:00
Andrew Phillips (aider)
b08c7e7346 refactor: Rename compression module to compression_engine and update references 2025-05-12 17:11:32 -03:00
Andrew Phillips
e3159473d0 chore: Rename compression directory to compression_engine 2025-05-12 17:08:00 -03:00
Andrew Phillips
9c8bc542c5 refactor: format assert macros for better readability 2025-05-12 16:44:43 -03:00
Andrew Phillips
abef0bc96e style: add newline to separate test cases 2025-05-12 16:40:23 -03:00
Andrew Phillips
20f455884c test: add test for unknown compression handling and fix whitespace 2025-05-12 16:40:04 -03:00
Andrew Phillips (aider)
ec3716e4b9 style: convert multi-line asserts to single-line format 2025-05-12 16:24:05 -03:00
Andrew Phillips (aider)
51cac5ad3a style: format assert!() macros to single line 2025-05-12 16:23:33 -03:00
Andrew Phillips (aider)
26198933c5 test: add command logging to track test execution 2025-05-12 16:19:09 -03:00
Andrew Phillips
6d365f7eed test: add output validation for compression formats 2025-05-12 16:19:00 -03:00
Andrew Phillips (aider)
c46e78b067 test: Improve error messages in test_compression 2025-05-12 16:05:02 -03:00
Andrew Phillips (aider)
e72ef13c60 test: improve error messages with command and status 2025-05-12 16:02:26 -03:00
Andrew Phillips (aider)
978a226b78 test: add compression tests for none, lz4, gzip, bzip2 2025-05-12 15:58:13 -03:00
Andrew Phillips (aider)
d8ce6f98c6 refactor: Update create_test_items to use global INPUT_A and INPUT_B constants 2025-05-12 15:54:58 -03:00
Andrew Phillips (aider)
ca15cc4e65 refactor: convert input_a and input_b to global constants 2025-05-12 15:53:15 -03:00
Andrew Phillips (aider)
aace16b70d refactor: use input_a and input_b in test assertions 2025-05-12 15:50:14 -03:00
Andrew Phillips (aider)
b95c7367e7 test: add detailed error messages to assert statements 2025-05-12 15:40:25 -03:00
Andrew Phillips
310d8afe95 test: enable verbose mode in tests and update assertions 2025-05-12 15:40:16 -03:00
Andrew Phillips (aider)
bfa471cd84 test: Add error messages to String.contains() asserts in tests 2025-05-12 13:38:09 -03:00
Andrew Phillips (aider)
098473f5d1 test: Add test for diff command functionality 2025-05-12 13:35:53 -03:00
Andrew Phillips (aider)
c00e777762 refactor: reorder code in create_test_items function 2025-05-12 13:34:22 -03:00
Andrew Phillips (aider)
dedbf95f3e fix: resolve variable scope and function argument issues in tests 2025-05-12 13:33:50 -03:00
Andrew Phillips (aider)
e5b36779db refactor: remove function arg from create_test_items and move logic to tests 2025-05-12 13:31:44 -03:00
Andrew Phillips
c34d7ccf4d refactor: remove closure from create_test_items in test_save_item 2025-05-12 13:31:34 -03:00
Andrew Phillips (aider)
7490be8e42 refactor: suppress unused variable warning by renaming parameter to _f 2025-05-12 13:23:04 -03:00
Andrew Phillips (aider)
2a7539e558 refactor: simplify test_list_items using create_test_items helper 2025-05-12 13:21:56 -03:00
Andrew Phillips (aider)
9407408179 refactor: use create_test_items for test environment setup 2025-05-12 13:19:46 -03:00
Andrew Phillips (aider)
2ef54a8efa fix: assertion messages show command instead of input 2025-05-12 13:17:01 -03:00
Andrew Phillips (aider)
159959173c test: use env to run commands and add 'tag' as tag 2025-05-12 13:14:26 -03:00
Andrew Phillips (aider)
d72a71d325 test: add create_test_items helper for common test environment setup 2025-05-12 13:11:25 -03:00
Andrew Phillips
d9072d22d5 refactor: improve test structure and reliability 2025-05-12 13:07:33 -03:00
Andrew Phillips (aider)
eaf341cdfb refactor: reorder tests to ensure save precedes get and delete 2025-05-12 12:13:50 -03:00
Andrew Phillips (aider)
09b1a16125 fix: replace .expect() with output status check 2025-05-12 12:08:30 -03:00
Andrew Phillips (aider)
64c92651b3 fix: replace expect with output status check in tests 2025-05-12 12:07:43 -03:00
Andrew Phillips (aider)
b5de04c877 refactor: replace run_keep with run_sh for sh -c command execution 2025-05-12 12:06:44 -03:00
Andrew Phillips
543468bf0e refactor: adjust tests for unused variables and simplified command args 2025-05-12 12:06:35 -03:00
Andrew Phillips (aider)
68167e9d05 fix: Add missing tempdir import and remove unused imports/variables 2025-05-12 11:55:01 -03:00
Andrew Phillips (aider)
850f5fb80a fix: resolve test errors, add tempfile, fix command args 2025-05-12 11:49:49 -03:00
Andrew Phillips (aider)
4b8e082179 feat: configure Cargo.toml to include src/tests.rs in test suite 2025-05-12 11:37:26 -03:00
Andrew Phillips (aider)
4c1fbdbd64 fix: improve command execution in tests 2025-05-12 11:25:32 -03:00
Andrew Phillips (aider)
5b2d8b365d feat: Add test cases for keep CLI with temporary directory 2025-05-12 11:23:42 -03:00
Andrew Phillips (aider)
f9969a7537 fix: use libc::c_int for file descriptor instead of nix::Fd 2025-05-12 11:16:46 -03:00
Andrew Phillips (aider)
723ec2a6e8 fix: convert Fd to raw descriptor using .0 access
This addresses the E0412 error by correctly extracting the raw file descriptor from the nix::unistd::Fd newtype wrapper.
2025-05-12 11:15:32 -03:00
Andrew Phillips (aider)
f9dd390a12 fix: convert nix Fd to raw fd using into_raw() 2025-05-12 11:14:44 -03:00
Andrew Phillips (aider)
d31ab6e793 refactor: centralize thread spawning for item writing 2025-05-12 11:13:06 -03:00