Commit graph

1 commit

Author SHA1 Message Date
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