Skip to content

test: tighten namespace Resolve and Spell cases - #193

Merged
mpyw merged 1 commit into
mainfrom
test/namespace-resolve-spell-cleanup
Oct 12, 2026
Merged

mpyw merged 1 commit into
mainfrom
test/namespace-resolve-spell-cleanup

Conversation

@mpyw

@mpyw mpyw commented Oct 12, 2026

Copy link
Copy Markdown
Owner

Follow-up to #192.

  • TestResolve: pin that a test file joins only a core subject. Under //declscope:namespace custom on user.go, user_test.go stays user.
  • TestSpell: drop derived, which passed the same input shape as named. Replace empty name with path (Resolved{} with helper.go, which Resolve never produces) with a/b/.go, which shows that the key uses the base name.
  • Compare Resolve results with slices.Equal.

mise x -- ./test_all.sh passes locally.

🤖 Generated with Claude Code

Pin that a test file does not join a //declscope:namespace subject, only
a core one. Drop the Spell case that repeated "named", and replace the
case with an unreachable input (a stem-bearing path with an empty name)
with one that shows the key uses the base name of a stemless file.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@codecov

codecov Bot commented Oct 12, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.02%. Comparing base (e7084e7) to head (5347e94).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #193   +/-   ##
=======================================
  Coverage   99.02%   99.02%           
=======================================
  Files          50       50           
  Lines        4214     4214           
=======================================
  Hits         4173     4173           
  Misses         41       41           
Flag Coverage Δ
unittests 99.02% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@mpyw
mpyw merged commit c86c62f into main Oct 12, 2026
13 of 14 checks passed
@mpyw
mpyw deleted the test/namespace-resolve-spell-cleanup branch October 12, 2026 12:42
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