You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Move all unit tests from src/ to tests/ directory and add 99 unit tests
- Moved all #[cfg(test)] blocks from src/ modules to corresponding tests/ files
- Created new test files: test_cli.rs and test_color_graph.rs
- Added comprehensive unit tests for helper functions across all modules
- Now have 99 total unit tests organized in tests/ directory
- Updated health.rs to make is_git_repo() function public with path parameter
- All unit tests properly test extracted helper functions for better coverage
- Improved code organization with clear separation between source and tests
Unit test breakdown by module:
- test_cli.rs: 14 tests (argument parsing)
- test_summary.rs: 13 tests (git log parsing, formatting)
- test_rename_branch.rs: 11 tests (branch operations)
- test_prune_branches.rs: 11 tests (branch protection, deletion)
- test_clean_branches.rs: 10 tests (merged branch cleanup)
- test_health.rs: 10 tests (repository health checks)
- test_what.rs: 8 tests (diff analysis, commit parsing)
- test_info.rs: 6 tests (repository information)
- test_color_graph.rs: 4 tests (colorized git log)
- test_graph.rs: 4 tests (git log formatting)
- test_since.rs: 4 tests (commit range analysis)
- test_undo.rs: 4 tests (git reset operations)
0 commit comments