1
0
Fork 0
mirror of https://github.com/imjasonh/git-k8s synced 2026-07-10 07:31:59 +00:00
git-k8s/pkg/apis/git/v1alpha1
Claude 01fcebed54
Improve test coverage from 10.3% to 42.7% with diffcover analysis
Apply the diffcover technique to map code snippets to features, identify
under-tested components, and add comprehensive tests for all reconciler
business logic. Key improvements:

- pkg/reconciler/internal: 26.7% → 100% (generic adapter fully tested)
- pkg/client: 5.6% → 71.8% (full CRUD for all 4 resource types)
- pkg/reconciler/repowatcher: 10.1% → 56.3% (ReconcileKind lifecycle)
- pkg/reconciler/push: 0% → 33.3% (failTransaction, updateBranches)
- pkg/reconciler/sync: 0% → 33.0% (findBranch, createPushTransaction)
- pkg/reconciler/resolver: 2.1% → 17.0% (merge transactions, manual intervention)

Includes COVERAGE_REPORT.md with full code-to-feature mapping showing
which tests cover which lines, following the diffcover methodology.

https://claude.ai/code/session_016Yeyfoocn7SN2HuMsxRD6f
2026-03-04 19:49:59 +00:00
..
defaults.go Fix multiple code review issues: dedup splitKey, fix merge bug, remove dead code 2026-02-28 04:39:00 +00:00
defaults_test.go Improve test coverage from 10.3% to 42.7% with diffcover analysis 2026-03-04 19:49:59 +00:00
doc.go Change API group from git.k8s.io to git-k8s.imjasonh.com 2026-02-28 00:34:34 +00:00
groupversion_info.go Change API group from git.k8s.io to git-k8s.imjasonh.com 2026-02-28 00:34:34 +00:00
types.go Add repo-watcher-controller for polling remote Git refs 2026-02-28 14:09:58 +00:00
types_test.go Add unit tests and GitRepoSync e2e test 2026-02-28 01:52:05 +00:00
zz_generated.deepcopy.go Add repo-watcher-controller for polling remote Git refs 2026-02-28 14:09:58 +00:00