SQLite key-value store wrapper
Find a file
Claude a6c99a2e0f
test: push coverage from 90.9% to 97.0%
Cover previously unreachable error paths in New(), GetAll(), and Render():
- New: schema conflict when index named "kv" pre-exists
- GetAll: scan error via NULL-key injection after table restructure
- GetAll: rows iteration error via database page corruption
- Render: scan error via same NULL-key technique
- Render: rows iteration error via same corruption technique

GetAll and Render now at 100%. Only 3 stmts remain uncovered in New()
(sql.Open lazy-error and PRAGMA busy_timeout — both genuinely
unreachable without driver mocking).

Co-Authored-By: Charon <charon@lethean.io>
2026-02-20 02:41:54 +00:00
CLAUDE.md feat(store): add TTL support and harden test coverage to 90.9% 2026-02-20 01:14:08 +00:00
coverage_test.go test: push coverage from 90.9% to 97.0% 2026-02-20 02:41:54 +00:00
FINDINGS.md feat(store): add TTL support and harden test coverage to 90.9% 2026-02-20 01:14:08 +00:00
go.mod fix: add modernc.org/sqlite dependency 2026-02-19 16:10:16 +00:00
go.sum fix: add modernc.org/sqlite dependency 2026-02-19 16:10:16 +00:00
store.go feat(store): add TTL support and harden test coverage to 90.9% 2026-02-20 01:14:08 +00:00
store_test.go feat(store): add TTL support and harden test coverage to 90.9% 2026-02-20 01:14:08 +00:00
TODO.md feat(store): add TTL support and harden test coverage to 90.9% 2026-02-20 01:14:08 +00:00