Skip to content

Raise code coverage from 67.9% to 75.7%#7

Merged
drompincen merged 1 commit intomainfrom
feature/claude-companion-features
Mar 29, 2026
Merged

Raise code coverage from 67.9% to 75.7%#7
drompincen merged 1 commit intomainfrom
feature/claude-companion-features

Conversation

@drompincen
Copy link
Copy Markdown
Owner

Summary

  • Closed-loop coverage campaign: 2 iterations, 199 new tests (386 → 585)
  • Instruction coverage: 67.9% → 75.7% (target was 75%)
  • Branch coverage: 61.8% → 66.7%

Iteration 1 (67.9% → 72.3%)

  • ReladomoService: 56% → 100% (22 new tests — edge cases, idempotent re-store, config storage)
  • ReladomoConfigParser: 20% → 99.6% (21 new tests — XML parsing, connection managers, cache config)
  • SearchService: 21 new integration tests (exact/semantic/hybrid/HNSW paths)
  • CoChange + GitBlame: 11 new DB-backed and parse edge case tests
  • Ingestion + TextExtractor + Session: 30 new tests covering error paths, Office formats, search

Iteration 2 (72.3% → 75.7%)

  • IngestionWorker: 76% → 89% (15 new tests — poll logic, Reladomo branches, error recovery)
  • TextExtractor: 79% → 94% (16 new tests — POI Office formats, ZIP/EML/RTF edges)
  • CoChangeService: 59% → 85% (15 new tests — filter extraction, end-to-end pipeline)
  • GitBlame: live git tests + parse edge cases
  • RestController: 9 new tests (session decisions, related, blame endpoints)
  • SessionTranscriptParser: 14 new tests (content block variants, role fallbacks)
  • ReladomoXmlParser: 13 new tests (temporal types, relationships, indices)

Test plan

  • 585 tests passing, 0 failures, 4 skipped
  • mvn verify green with JaCoCo report
  • Only 1 production code change (CoChangeService: extract method for testability)

🤖 Generated with Claude Code

Closed-loop coverage campaign: 2 iterations, 199 new tests (386 → 585).

Iteration 1 (67.9% → 72.3%): ReladomoService 56→100%, ReladomoConfigParser
20→99%, SearchService integration tests, CoChange/GitBlame DB tests,
IngestionWorker/TextExtractor/SessionIngestion edge cases.

Iteration 2 (72.3% → 75.7%): IngestionWorker 76→89%, TextExtractor 79→94%,
CoChangeService 59→85%, GitBlame live git tests, RestController extended tests,
SessionTranscriptParser + ReladomoXmlParser branch coverage.

585 tests, 0 failures, 4 skipped. Branch coverage: 66.7%.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@drompincen drompincen merged commit f0efaa1 into main Mar 29, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant