Skip to content

Drop redundant @eval module $(gensym()) wrapper from test files#343

Merged
mtfishman merged 1 commit intomainfrom
mf/drop-gensym-wrappers
Apr 26, 2026
Merged

Drop redundant @eval module $(gensym()) wrapper from test files#343
mtfishman merged 1 commit intomainfrom
mf/drop-gensym-wrappers

Conversation

@mtfishman
Copy link
Copy Markdown
Member

ITensorPkgSkeleton.runtests already wraps each test file in its own Module(gensym(:SafeTestset)) (see _run_isolated_testfile in ITensorPkgSkeleton). The per-file @eval module $(gensym()) wrapper at the top of each test file therefore creates a redundant module-inside-a-module. Remove the leading @eval module $(gensym()) and the matching trailing end from all 22 test files that carried it.

The four files that already used the bare-module style (test/test_aqua.jl, test/solvers/test_eigsolve.jl, test/solvers/test_applyexp.jl, test/solvers/test_iterators.jl) are unchanged. Bump patch version 0.19.3 -> 0.19.4 (test-only diff, substantive per the standard VersionCheck classification).

`ITensorPkgSkeleton.runtests` already wraps each test file in its own
`Module(gensym(:SafeTestset))` (see `_run_isolated_testfile` in
ITensorPkgSkeleton). The per-file `@eval module $(gensym())` wrapper at
the top of each test file therefore creates a redundant
module-inside-a-module. Remove the leading `@eval module $(gensym())`
and the matching trailing `end` from all 22 test files that carried it.

The four files that already used the bare-module style
(`test/test_aqua.jl`, `test/solvers/test_eigsolve.jl`,
`test/solvers/test_applyexp.jl`, `test/solvers/test_iterators.jl`) are
unchanged. Bump patch version 0.19.3 -> 0.19.4 (test-only diff,
substantive per the standard `VersionCheck` classification).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 26, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 73.11%. Comparing base (9c22dd7) to head (eb59af8).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #343      +/-   ##
==========================================
+ Coverage   73.08%   73.11%   +0.03%     
==========================================
  Files          66       66              
  Lines        3151     3151              
==========================================
+ Hits         2303     2304       +1     
+ Misses        848      847       -1     
Flag Coverage Δ
docs 46.67% <ø> (+0.03%) ⬆️

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

☔ View full report in Codecov by Sentry.
📢 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.

@mtfishman mtfishman enabled auto-merge (squash) April 26, 2026 23:23
@mtfishman mtfishman merged commit a16b018 into main Apr 26, 2026
17 checks passed
@mtfishman mtfishman deleted the mf/drop-gensym-wrappers branch April 26, 2026 23:38
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