Steve Yegge
e38c0a58aa
test: Refactor duplicates_test.go to use shared DB pattern (P2)
...
METRICS:
- Tests: 5 tests
- DB setups removed: 1 → 1 shared
- Tests needing DB: 1/5
- Savings: setupTestDB() → newTestStore()
DETAILS:
- TestFindDuplicateGroups: Pure in-memory logic (no DB)
- TestChooseMergeTarget: Pure in-memory logic (no DB)
- TestCountReferences: Pure in-memory logic (no DB)
- TestDuplicateGroupsWithDifferentStatuses: Pure in-memory (no DB)
- TestDuplicatesIntegration: Uses shared DB (was: setupTestDB)
Also fixed: Removed hardcoded IDs, let DB assign them.
All 5 tests pass!
🤖 Generated with [Claude Code](https://claude.com/claude-code )
Co-Authored-By: Claude <noreply@anthropic.com >
2025-11-21 16:14:30 -05:00
..
2025-11-20 19:37:01 -05:00
2025-11-12 10:48:36 -08:00
2025-11-20 22:15:04 -05:00
2025-11-20 21:57:23 -05:00
2025-11-20 21:57:23 -05:00
2025-11-20 20:21:37 -05:00
2025-11-20 21:57:23 -05:00
2025-11-21 14:40:22 -05:00
2025-11-21 15:51:07 -05:00
2025-11-20 21:57:23 -05:00
2025-11-21 16:13:18 -05:00
2025-11-20 21:57:23 -05:00
2025-11-20 21:57:23 -05:00
2025-11-20 21:57:23 -05:00
2025-11-21 15:51:07 -05:00
2025-11-20 21:57:23 -05:00
2025-11-06 20:14:34 -08:00
2025-11-07 21:17:24 -08:00
2025-11-07 18:57:43 -08:00
2025-11-07 21:29:22 -08:00
2025-11-07 18:57:43 -08:00
2025-11-21 14:40:22 -05:00
2025-11-20 21:57:23 -05:00
2025-11-20 21:57:23 -05:00
2025-11-20 19:00:36 -05:00
2025-11-21 14:57:01 -05:00
2025-11-21 11:40:37 -05:00
2025-11-20 21:57:23 -05:00
2025-11-20 08:13:06 -08:00
2025-11-20 21:57:23 -05:00
2025-11-20 08:13:06 -08:00
2025-11-21 14:40:22 -05:00
2025-11-20 21:57:23 -05:00
2025-11-20 21:57:23 -05:00
2025-11-15 12:52:34 -08:00
2025-11-21 15:51:07 -05:00
2025-11-20 21:57:23 -05:00
2025-11-20 21:57:23 -05:00
2025-11-20 21:57:23 -05:00
2025-11-18 05:20:11 -05:00
2025-11-20 19:37:01 -05:00
2025-11-21 16:14:30 -05:00
2025-11-20 21:57:23 -05:00
2025-11-21 16:14:30 -05:00
2025-11-20 21:57:23 -05:00
2025-11-20 21:57:23 -05:00
2025-11-21 14:40:22 -05:00
2025-11-07 20:07:59 -08:00
2025-11-20 21:54:11 -05:00
2025-11-20 21:57:23 -05:00
2025-11-20 19:11:27 -05:00
2025-11-20 21:38:31 -05:00
2025-11-20 21:38:31 -05:00
2025-11-09 14:53:59 -08:00
2025-11-17 10:06:35 -07:00
2025-11-17 10:12:46 -07:00
2025-11-20 21:57:23 -05:00
2025-11-19 05:06:12 -05:00
2025-11-09 14:53:59 -08:00
2025-11-21 14:40:22 -05:00
2025-11-21 14:40:22 -05:00
2025-11-20 22:00:20 -05:00
2025-11-08 02:28:54 -08:00
2025-11-20 21:57:23 -05:00
2025-11-17 10:12:46 -07:00
2025-11-17 10:06:35 -07:00
2025-11-09 14:13:48 -08:00
2025-11-20 21:57:23 -05:00
2025-11-21 14:40:22 -05:00
2025-11-21 16:11:56 -05:00
2025-11-21 11:40:37 -05:00
2025-11-20 21:57:23 -05:00
2025-11-20 21:57:23 -05:00
2025-11-21 15:51:07 -05:00
2025-11-20 21:57:23 -05:00
2025-11-08 13:09:42 -08:00
2025-11-20 21:54:11 -05:00
2025-11-20 21:57:23 -05:00
2025-11-20 20:24:36 -05:00
2025-11-15 12:52:34 -08:00
2025-11-20 21:57:23 -05:00
2025-11-20 21:57:23 -05:00
2025-11-20 21:57:23 -05:00
2025-11-20 21:57:23 -05:00
2025-11-20 21:57:23 -05:00
2025-11-09 14:53:59 -08:00
2025-11-20 21:57:23 -05:00
2025-11-17 11:32:37 -07:00
2025-11-17 11:32:37 -07:00
2025-11-17 10:12:46 -07:00
2025-11-21 15:51:07 -05:00
2025-11-20 21:57:23 -05:00
2025-11-20 21:57:23 -05:00
2025-11-20 21:57:23 -05:00
2025-11-20 21:57:23 -05:00
2025-11-20 21:57:23 -05:00
2025-11-20 21:57:23 -05:00
2025-11-20 21:57:23 -05:00
2025-11-20 21:57:23 -05:00
2025-11-20 21:57:23 -05:00
2025-11-20 21:57:23 -05:00
2025-11-20 22:44:19 -05:00
2025-11-12 10:48:36 -08:00
2025-11-20 21:57:23 -05:00
2025-11-17 10:12:46 -07:00
2025-11-21 15:51:07 -05:00
2025-11-20 21:57:23 -05:00
2025-11-20 20:45:39 -05:00
2025-11-20 21:57:23 -05:00
2025-11-20 21:57:23 -05:00
2025-11-21 14:40:22 -05:00
2025-11-20 21:57:23 -05:00
2025-11-21 11:28:25 -05:00
2025-11-20 21:57:23 -05:00
2025-11-21 16:13:18 -05:00
2025-11-21 16:14:30 -05:00
2025-11-20 21:57:23 -05:00
2025-11-20 22:15:04 -05:00
2025-11-08 18:22:28 -08:00