Refactor: Convert tests from broothie/test to testify#16
Merged
Conversation
- Replace all instances of broothie/test with stretchr/testify - Use assert.* for test assertions and require.* for must-pass conditions - Update go.mod and go.sum to remove broothie/test dependency and add testify - Maintain existing test logic and behavior 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #16 +/- ##
=======================================
Coverage 75.54% 75.54%
=======================================
Files 17 17
Lines 687 687
=======================================
Hits 519 519
Misses 122 122
Partials 46 46 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
…or Must functions - Convert most require.NoError back to assert.NoError - Keep require.NoError only for the original test.MustNoError call - Maintain proper distinction between assertions and requirements 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
broothie/testtostretchr/testifyassert.*functions for standard assertionsrequire.*functions for must-pass conditions that should halt test executionTest plan
go test ./...to ensure all tests pass🤖 Generated with Claude Code