Commit eaf2a0e
committed
refactor: extract pure file collection logic for testability
- Split collect_input_files into pure collect_from_descriptors + I/O wrapper
- Replace 2 tempfile-based tests with 5 pure unit tests
- Add unit tests for --dry-run, --force, --quiet, --heading-offset flags
- Remove tempfile dev-dependency
Test coverage improved without filesystem access requirements.1 parent 1f74e32 commit eaf2a0e
3 files changed
+183
-131
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | 21 | | |
25 | 22 | | |
26 | 23 | | |
| |||
0 commit comments