Add parser, response validator and digest auth tests; restore data type tests from #449 #547
All Vouch review confidence checks passed
Residual risk 0.26 = Change Risk (0.63) × (1 − Review Confidence (0.58)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.63 · 269 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.335
Shallow Review Depth
shallow_review_depth
0.289
Sensitive Paths
sensitive_paths
0.063
Real PR Conversation Timeline
1 comments
"Review active on #547"
general
weight: 0.35
jonbartels
Adds unit tests for the HL7v2 and NCPDP readers, the HL7v2 response validator and the digest authenticator, and brings over the data type tests from #449 so they can land sooner.
New unit tests
What the tests cover:
authandauth-int, plus stale nonces, replayed and too-high nonce counts, and each invalid-directive path.| Class | Before (Sonar) | After (local JaCoCo) | Test file |
|---|---|---|---|
|
ER7Reader| 0% | 99.5% lines / 92.7% branches |ER7ReaderTest.java(new) ||
NCPDPReader| 0% | 99.4% / 91.1% |NCPDPReaderTest.java(new) ||
HL7v2ResponseValidator| 2.8% | 99.4% / 92.0% |HL7v2ResponseValidatorTest.java(new) ||
DigestAuthenticator| 7.4% | 91.5% / 86.5% |DigestAuthenticatorTest.java(15 tests added) |Data type tests from #449
Cherry-picked from @mgaffigan's
maint/restore-testswith-x, authorship and sign-off kept:Tests(HL7 serializer, password and value replacer tests renamed toTestso the build picks them up)main()-style test entrypointsThese sample-message tests pin realistic round trips, including the XML-to-message direction. The reader tests above cover edge cases the samples don't reach. Four reader tests that only repeated what the fixtures already check were dropped in the last commit.
testTransactionGroupsstays, because every NCPDP fixture has a single transaction.142 data type, digest, password and value-replacer tests pass locally on JDK 17.