mirror of
https://gitee.com/johng/gf
synced 2026-06-06 16:21:40 +08:00
## Summary - Add comprehensive unit tests for the `geninit` package which handles project initialization from templates - 17 new test cases covering core functionality ## Test Coverage | Function | Tests | Description | |----------|-------|-------------| | `ParseGitURL` | 7 | Git URL parsing with various formats | | `IsSubdirRepo` | 3 | Subdirectory detection | | `GetModuleNameFromGoMod` | 3 | Module name extraction | | `ASTReplacer` | 2 | Import path replacement | | `findGoFiles` | 2 | Go file discovery | ## Test plan - [x] All 17 tests pass locally - [x] No modifications to existing code - [x] New test file only: `geninit_z_unit_test.go`