Missing tests for core filesystem operations #20
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Missing tests for core filesystem operations
Priority: High
Component: tests/test_fs.py
Type: Testing
Description
The
fs.pymodule has no tests despite containing complex logic for copying, rsyncing, and hardlinking files.Missing Test Coverage
copy_file()- fast file copyingcopy_direntry()- copying files/dirs/symlinksupdate_direntry()- updating destination entriesrsync()- the core sync logichardlink_dir()- recursive hardlinkingnest_hardlink()- nested hardlink creationscantree()- recursive directory traversalrm_direntry()- recursive deletionRisks
Proposed Solution
Add comprehensive test coverage in
tests/test_fs.pyfor all functions, including:Impact
High - Core functionality is untested, making bugs likely and refactoring risky.