Skip to content

test(#812): migrate pkg/move/check tests to require.*#815

Merged
morgo merged 2 commits into
block:mainfrom
morgo:fix-issue-812-pkg-move-check-assert-require
May 3, 2026
Merged

test(#812): migrate pkg/move/check tests to require.*#815
morgo merged 2 commits into
block:mainfrom
morgo:fix-issue-812-pkg-move-check-assert-require

Conversation

@morgo
Copy link
Copy Markdown
Collaborator

@morgo morgo commented May 3, 2026

Closes #812. Part of #779.

Summary

  • Migrate assert.* -> require.* in pkg/move/check/*_test.go where appropriate.
  • Goroutine and bare-loop asserts kept as assert.* where safer (FailNow unsafe in goroutines; bare loops want all-failures view).
  • No production code changes.

Test plan

  • CI passes

🤖 Generated with Claude Code

morgo and others added 2 commits May 2, 2026 20:02
Part of block#779. Setup-path errors now fail-fast instead of cascading
into confusing follow-on assertion failures. Per block#779 follow-up:
assert.* is now allowed ONLY inside goroutine bodies and bare
table-driven loops; t.Run subtests and top-level asserts use require.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@morgo morgo merged commit 0697b1e into block:main May 3, 2026
12 checks passed
@morgo morgo deleted the fix-issue-812-pkg-move-check-assert-require branch May 3, 2026 13:39
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.

pkg/move/check

2 participants