Skip to content

test(#781): migrate pkg/table tests to require.*#798

Merged
morgo merged 8 commits into
block:mainfrom
morgo:fix-issue-781-pkg-table-assert-require
May 3, 2026
Merged

test(#781): migrate pkg/table tests to require.*#798
morgo merged 8 commits into
block:mainfrom
morgo:fix-issue-781-pkg-table-assert-require

Conversation

@morgo
Copy link
Copy Markdown
Collaborator

@morgo morgo commented May 2, 2026

Closes #781. Part of #779.

Summary

  • Migrate assert.*require.* in pkg/table/*_test.go where appropriate (setup/preconditions, single end-of-test checks, calls whose return values are dereferenced).
  • 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 3 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>
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 11:35
@morgo morgo enabled auto-merge May 2, 2026 13:46
@morgo morgo merged commit 318bee4 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/table

2 participants