Skip to content

docs(test): state test invariants directly instead of citing internal plan refs#233

Merged
DemchaAV merged 1 commit into
developfrom
chore/strip-private-plan-refs
Jun 25, 2026
Merged

docs(test): state test invariants directly instead of citing internal plan refs#233
DemchaAV merged 1 commit into
developfrom
chore/strip-private-plan-refs

Conversation

@DemchaAV

Copy link
Copy Markdown
Owner

Why

Several merged test files referenced internal planning identifiers and a gitignored planning-doc path in their comments and Javadoc. A public reader of the repo cannot resolve those references, so they read as noise rather than documentation.

What changed

Reworded the affected comments/Javadoc to describe the invariant or behaviour each test guards, directly:

  • InlineHighlightRenderTest — the chip-is-one-atomic-token invariant, and the over-wide-chip-emitted-on-its-own-line behaviour.
  • cv + coverletter PresetVisualParityTest — the pixel-diff parity gate now points at its in-source PIXEL_DIFF_BUDGET / PER_PIXEL_TOLERANCE constants, also dropping a stale figure that contradicted them.
  • VersionConsistencyGuardTest — the version-literal drift class it guards.

CanonicalSurfaceGuardTest is intentionally left unchanged — excluding the gitignored planning directory is the behaviour under test there.

No production code, public API, or test behaviour changes; comments/Javadoc only.

Verification

  • ./mvnw test -Dtest=InlineHighlightRenderTest,PresetVisualParityTest,VersionConsistencyGuardTest -pl . → 49 passed, 0 failures.
  • ./mvnw -q compile -pl . → clean.

… plan refs

Why: several merged test files referenced internal planning identifiers
and a gitignored planning-doc path in their comments and Javadoc. A
public reader of the repo cannot resolve those references, so they read
as noise rather than documentation.

What: reword the affected comments/Javadoc to describe the invariant or
behaviour each test guards, directly:
- InlineHighlightRenderTest: the chip-is-one-atomic-token invariant and
  the over-wide-chip-emitted-on-its-own-line behaviour.
- cv + coverletter PresetVisualParityTest: the pixel-diff parity gate now
  points at its in-source PIXEL_DIFF_BUDGET / PER_PIXEL_TOLERANCE
  constants, also dropping a stale figure that contradicted them.
- VersionConsistencyGuardTest: the version-literal drift class it guards.

CanonicalSurfaceGuardTest is intentionally left unchanged — excluding the
gitignored planning directory is the behaviour under test there.

Tests: ./mvnw test -Dtest=InlineHighlightRenderTest,PresetVisualParityTest,VersionConsistencyGuardTest -pl . (49 passed); ./mvnw -q compile -pl . clean.
@DemchaAV DemchaAV merged commit b740a7d into develop Jun 25, 2026
11 checks passed
@DemchaAV DemchaAV deleted the chore/strip-private-plan-refs branch June 25, 2026 11:23
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