Skip to content

test(#782): migrate pkg/statement tests to require.*#800

Merged
morgo merged 5 commits into
block:mainfrom
morgo:fix-issue-782-pkg-statement-assert-require
May 3, 2026
Merged

test(#782): migrate pkg/statement tests to require.*#800
morgo merged 5 commits into
block:mainfrom
morgo:fix-issue-782-pkg-statement-assert-require

Conversation

@morgo
Copy link
Copy Markdown
Collaborator

@morgo morgo commented May 2, 2026

Closes #782. Part of #779.

Summary

  • Migrate assert.*require.* in pkg/statement/*_test.go where appropriate.
  • Loop and table-driven assertions kept as assert.* where seeing all failures at once is preferable.
  • No production code changes.

Test plan

  • CI passes

🤖 Generated with Claude Code

morgo and others added 2 commits May 1, 2026 20:27
Part of block#779. Setup-path errors now fail-fast instead of cascading
into confusing follow-on assertion failures.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
…riven loops keep assert

Per block#779 follow-up: assert.* is now allowed ONLY inside goroutine bodies
(where require.FailNow is unsafe) and inside table-driven test loops
(where seeing all case failures together helps). Everything else uses
require.*.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@morgo morgo marked this pull request as ready for review May 2, 2026 03:57
@morgo morgo enabled auto-merge May 2, 2026 13:45
@morgo morgo merged commit d0c39b9 into block:main May 3, 2026
12 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.

pkg/statement

2 participants