Skip to content

tests: Convert stretchr/testify to matryer/is#14

Merged
camh- merged 2 commits intomasterfrom
is
Dec 15, 2025
Merged

tests: Convert stretchr/testify to matryer/is#14
camh- merged 2 commits intomasterfrom
is

Conversation

@camh-
Copy link
Member

@camh- camh- commented Dec 14, 2025

Convert all the tests from using stretchr/testify to matryer/is. is
is a much smaller package with fewer dependencies. Most of the
additional functionality of testify can be replaced with direct Go code
or the google/go-cmp package (which we do not need here yet).

Fix the comment on IsAncestor() which had some bits backwards. Also
fix the test comment for IsAncestor() which had the same backwards.

Disable the thelper linter as it does not know about is.Helper().

Issue: #7

@camh- camh- requested a review from juliaogris December 14, 2025 15:33
Disable the `thelper` linter that checks that test helpers call
`t.Helper()` as the first thing as switching to `matryer/is` means we
will use `is.Helper()` instead, and the linter does not know about that.
Copy link
Member

@juliaogris juliaogris left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! unbelievable how much easier this is for me to parse. I will use is form here onwards too.

In last commit: strechr/testify → should be stretchr/testify (missing t)

Convert all the tests from using `stretchr/testify` to `matryer/is`. `is`
is a much smaller package with fewer dependencies. Most of the
additional functionality of testify can be replaced with direct Go code
or the `google/go-cmp` package (which we do not need here yet).

Fix the comment on `IsAncestor()` which had some bits backwards. Also
fix the test comment for `IsAncestor()` which had the same backwards.
@camh-
Copy link
Member Author

camh- commented Dec 15, 2025

In last commit: strechr/testify → should be stretchr/testify (missing t)

Fixed.

PTAL 🍪

Copy link
Member

@juliaogris juliaogris left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

still 💚

@camh- camh- merged commit 2c98e3f into master Dec 15, 2025
1 check passed
@camh- camh- deleted the is branch December 15, 2025 07:08
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.

2 participants