Skip to content

test: add table-driven tests for namespace resolve and spell - #192

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

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

Conversation

@Macawls

@Macawls Macawls commented Oct 11, 2026

Copy link
Copy Markdown
Contributor

Add table-driven tests for the exported Resolve and Spell functions in internal/namespace, which previously had no direct unit tests.

  • TestResolve covers derived namespaces, named directives, core directives, test-file joining, and empty stems
  • TestSpell covers core, named, derived, and no-stem cases for baseline key formatting

@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 (8372816).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #192   +/-   ##
=======================================
  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 commented Oct 12, 2026

Copy link
Copy Markdown
Owner

Congrats and appreciate for the first contributor!

@mpyw
mpyw merged commit 2fc87f3 into mpyw:main Oct 12, 2026
6 checks passed
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.

2 participants