open-code-review/internal/scan
kite 453c4f9c76 test: add coverage tests for agent, llm, llmloop, and scan packages
Raise statement coverage to 80%+ across four core packages to meet
FLOSS best practice badge criteria. Key additions:

- internal/scan (67% → 90%): getters, lookupDiff, filterScanItems,
  whyExcluded all branches, extFromPath, maybeRunPlan/ProjectSummary/
  Dedup success paths, executeSubtask, Run pipeline, dispatchSubtasks.
- internal/agent (60% → 83%): getters, filterDiffs, findDiff,
  resolveSystemRule, injectDiffMap, executeReviewFilter, executePlanPhase,
  executeSubtask, dispatchSubtasks.
- internal/llmloop (59% → 80%): warnings, tool calls, usage recording,
  compression lifecycle (cancel/tryApply/run/trigger), partitionMessages.
- internal/llm (67% → 80%): parseBpeData, embedded BPE loader, message
  constructors, ExtractText, ChatResponse helpers, parseShellRC.
2026-06-27 00:15:28 +08:00
..
agent.go feat: add tool_calls field to JSON output (#216) 2026-06-25 13:53:06 +08:00
agent_test.go feat: add ocr scan for full-file code review (#93) 2026-06-24 22:07:25 +08:00
batch.go feat: add ocr scan for full-file code review (#93) 2026-06-24 22:07:25 +08:00
batch_test.go feat: add tool_calls field to JSON output (#216) 2026-06-25 13:53:06 +08:00
budget_test.go feat: add tool_calls field to JSON output (#216) 2026-06-25 13:53:06 +08:00
coverage_test.go test: add coverage tests for agent, llm, llmloop, and scan packages 2026-06-27 00:15:28 +08:00
dedup_test.go feat: add tool_calls field to JSON output (#216) 2026-06-25 13:53:06 +08:00
estimate.go feat: add ocr scan for full-file code review (#93) 2026-06-24 22:07:25 +08:00
estimate_test.go feat: add tool_calls field to JSON output (#216) 2026-06-25 13:53:06 +08:00
preview.go feat: add ocr scan for full-file code review (#93) 2026-06-24 22:07:25 +08:00
provider.go feat: add ocr scan for full-file code review (#93) 2026-06-24 22:07:25 +08:00
provider_test.go feat: add ocr scan for full-file code review (#93) 2026-06-24 22:07:25 +08:00