mirror of
https://github.com/imjasonh/git-k8s
synced 2026-07-06 22:12:25 +00:00
Apply the differential coverage (diffcover) pattern to identify under-tested components and add targeted tests. Coverage improved from 10.3% to 28.1% overall, with key reconciler packages going from 0% to meaningful coverage. Key changes: - internal: 26.7% -> 100% (NewReconciler, Reconcile, Promote, Demote) - sync: 0% -> 33% (findBranch, updateSyncStatus, createPushTransaction, ReconcileKind) - push: 0% -> 24.1% (failTransaction, updateBranches, resolveAuth, ReconcileKind) - resolver: 2.1% -> 32.9% (buildMergedTree, markManualIntervention, createMergePushTransactions) - repowatcher: 10.1% -> 53.8% (resolveAuth, ReconcileKind, SetImpl, enqueueAfter) Also fixes a bug in resolver.go where buildMergedTree did not sort tree entries before encoding, causing "entries in tree are not sorted" errors. https://claude.ai/code/session_013XXVjRk3cWjsMb8BSvntQK |
||
|---|---|---|
| .. | ||
| apis/git/v1alpha1 | ||
| client | ||
| reconciler | ||