summaryrefslogtreecommitdiff
path: root/internal/storage/db_test.go
AgeCommit message (Collapse)Author
3 daysAdd Updated column to Host reports from file mtimeHEADmasterPaul Buetow
2026-04-14test(storage): expand db.go coverage (ask 14)Paul Buetow
Add negative and edge-case tests for CreateSchema, ResetRecords, LoadRecords, and ImportFromDir: closed DB, canceled context, missing schema, invalid stats path, skipped parse lines, ordering/fields. Made-with: Cursor
2026-04-14refactor: drop goprecords DB pass-through, use storage from CLI (x3)Paul Buetow
Remove OpenDB/CreateSchema/ResetRecords/ImportFromDir/ImportFromFS wrappers and sqlite blank import from goprecords; keep LoadAggregates. CLI and integration tests call storage.* directly. Storage-focused tests live under internal/storage. Made-with: Cursor
2026-04-14n3: validate SQLite with PingContext after OpenPaul Buetow
Call db.PingContext in storage.Open and authkeys.OpenStore; close DB and return wrapped errors on failure. Add tests for canceled context and invalid directory path. Made-with: Cursor