Commit Graph

352 Commits

Author SHA1 Message Date
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
Andrew Phillips (aider)
f3f3c6d628 refactor: extract common function for writing item data to pipe with fd argument 2025-05-12 11:10:00 -03:00
Andrew Phillips (aider)
825ff7a451 fix: remove unused import and method 2025-05-12 10:51:00 -03:00
Andrew Phillips
bb7ed06e9c refactor: update debug logs to use log::debug macro 2025-05-12 10:50:54 -03:00
Andrew Phillips (aider)
e6cc479b32 refactor: Replace debug! with log::debug! in diff module logging statements 2025-05-12 10:45:22 -03:00
Andrew Phillips (aider)
47e0a1d51c fix: add log::debug macro and remove unused imports 2025-05-12 10:40:49 -03:00
Andrew Phillips (aider)
5edecfa960 fix: update debug macros to use log crate and remove unused imports 2025-05-12 10:25:53 -03:00
Andrew Phillips (aider)
74e4db0f65 fix: resolve duplicate imports and add log::debug prefixes 2025-05-12 10:23:52 -03:00
Andrew Phillips
9418bf58ea refactor: Remove mode_diff implementation and dependencies 2025-05-12 10:23:28 -03:00
Andrew Phillips (aider)
8594a292f9 fix: add missing diff module and mode_diff implementation 2025-05-12 10:20:24 -03:00
Andrew Phillips
48311b0f5f refactor: Remove --diff mode implementation from main function 2025-05-12 10:17:25 -03:00
Andrew Phillips (aider)
4741314493 refactor: Move mode_diff to src/modes/diff.rs and update imports 2025-05-12 10:00:05 -03:00
Andrew Phillips (aider)
d669beca5a (no commit message provided) 2025-05-12 09:01:45 -03:00
Andrew Phillips
d9defdec45 refactor: move list mode handling to modes/list.rs 2025-05-10 14:11:37 -03:00
Andrew Phillips (aider)
5c76d4c15c refactor: add ColumnType import and remove unused imports 2025-05-10 14:09:32 -03:00
Andrew Phillips (aider)
134731ca5c fix: add missing format_size and ColumnType imports 2025-05-10 14:07:31 -03:00
Andrew Phillips (aider)
d5f9adc3ae fix: remove unused imports and adjust common module re-exports 2025-05-10 14:06:23 -03:00
Andrew Phillips (aider)
e0e00f13af fix: add missing ColumnType/TableFormat imports and re-export 2025-05-10 14:05:09 -03:00
Andrew Phillips (aider)
da47077b08 fix: add missing CompressionEngineProgram import and remove unused imports 2025-05-10 14:02:16 -03:00