Skip to content

Standardize test failure messages and fix several test bugs - #888

Merged
fxamacker merged 2 commits into
masterfrom
fxamacker/cleanup-tests
Oct 26, 2026
Merged

fxamacker merged 2 commits into
masterfrom
fxamacker/cleanup-tests

Conversation

@fxamacker

Copy link
Copy Markdown
Owner

This PR standardizes test failure messages to follow Go stdlib idioms (e.g. "Func = X, want Y", "Func error = %v, want %v"). It also fixes some test bugs, and uses test helpers in a few more places.

Coverage is unchanged at about 97.7%.

No changes to non-test code.

This commit standardizes test failure messages to follow Go stdlib
idioms (e.g. "Func = X, want Y", "Func error = %v, want %v").

While at it, it also fixes wrong failure messages, and uses check
error test helpers in a few more places.
@fxamacker fxamacker self-assigned this Oct 26, 2026
@fxamacker fxamacker added the tests Unit tests label Oct 26, 2026
@fxamacker
fxamacker merged commit 6567310 into master Oct 26, 2026
19 checks passed
@fxamacker
fxamacker deleted the fxamacker/cleanup-tests branch October 27, 2026 16:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tests Unit tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants