test(lint): add dedicated unit tests for 9 lineclass_scan HTML helpers (plan 2606260614) - #702
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files
☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
…can HTML helpers (plan 2606260614)
|
🔍 Merge Queue — bisecting A larger batch failed CI. Bisection is isolating the culprit: this run tests up to 2 of 3 candidate PRs on Next: No action needed — you'll be notified when the culprit is isolated, this PR merges, or this PR returns to the queue for a later batch. |
|
🔍 Merge Queue — bisecting A larger batch failed CI. Bisection is isolating the culprit: this run tests up to 1 of 2 candidate PRs on Next: No action needed — you'll be notified when the culprit is isolated, this PR merges, or this PR returns to the queue for a later batch. |
…can HTML helpers (plan 2606260614)
|
🔍 Merge Queue — bisecting A larger batch failed CI. Bisection is isolating the culprit: this run tests up to 1 of 1 candidate PRs on Next: No action needed — you'll be notified when the culprit is isolated, this PR merges, or this PR returns to the queue for a later batch. |
|
❌ Merge Queue — CI failed (identified via bisection) Bisection identified this PR as the failing change. View CI run that isolated the failure. Next: Fix the failure, push updates, then re-add the |
Closes the 2026-06-26 architecture audit. Two tax items filed: - internal/lint/lineclass_scan.go: 9 unexported HTML-scanning helpers lack dedicated unit tests (plan/2606260614). - cue/cuelite/engine.go: 7 unexported helpers lack dedicated unit tests (plan/2606260615). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VwsEmnkHJvLoaj8imqQRjJ
…an 2606260614) TestScanHTMLTag, TestScanClosingTag, TestScanOpenTag, TestScanTagName, TestScanAttribute, TestScanAttrValue, TestSkipHTMLWS, TestIsUnquotedStop, TestEqualFoldASCII — each covers the happy path and key failure arms. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VwsEmnkHJvLoaj8imqQRjJ
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VwsEmnkHJvLoaj8imqQRjJ
- Remove stale IncomingAnchorEdges audit entry (exemption already present at internal/lsp/rename.go:437) - Add internal/rules/listscan to the approved-helpers list in the architecture hub and audit checklist, restoring the clearance that was deleted when the 2026-06-21 audit entry was compressed - Add TestContainsFold directly testing the sliding-window case-insensitive searcher (boundary cases: match at pos 0, middle, last window; no match; needle longer than line; empty line) - Add end-of-input success case to TestScanTagName Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VwsEmnkHJvLoaj8imqQRjJ
The inline function-name list made the bullet's average sentence length exceed the 14-word readability budget. Drop the list; the function names are already documented in plan/2606260211. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VwsEmnkHJvLoaj8imqQRjJ
475e8b2 to
885d2f0
Compare
|
🟢 Merge Queue — picked up This PR is in the queue and will be batched with other Next: No action needed — you'll get another comment when CI starts on the batch. View merge queue run. |
…can HTML helpers (plan 2606260614)
|
🔵 Merge Queue — CI running Merged into batch branch Next: No action needed — you'll be notified when CI completes. |
|
🔍 Merge Queue — bisecting A larger batch failed CI. Bisection is isolating the culprit: this run tests up to 1 of 2 candidate PRs on Next: No action needed — you'll be notified when the culprit is isolated, this PR merges, or this PR returns to the queue for a later batch. |
|
✅ Merge Queue — merged This PR landed on Next: Done — nothing more to do here. |
Summary
3d35b77..fe7141b) filed two new tax plans:2606260614(lineclass_scan helpers) and2606260615(cuelite engine helpers).internal/lint/lineclass_scan_test.gofor the unexported HTML-scanning sub-functions ofhtmlType7Start.Tests added
TestScanHTMLTag,TestScanClosingTag,TestScanOpenTag,TestScanTagName,TestScanAttribute,TestScanAttrValue,TestSkipHTMLWS,TestIsUnquotedStop,TestEqualFoldASCII— each covers the happy path and key failure arms. No production code changed.Test plan
go test ./internal/lint/...greengo vet ./...cleango run ./cmd/mdsmith check docs/development/architecture-audit.mdpasses🤖 Generated with Claude Code
https://claude.ai/code/session_01VwsEmnkHJvLoaj8imqQRjJ
Generated by Claude Code