Adopt testify require.Equal

Proprietary

Replace if got != want { t.Fatal(...) } and if got == want { t.Fatal(...) } comparison guards in tests with require.Equal(t, want, got) / require.NotEqual(t, want, got) from github.com/stretchr/testify/require.

org.openrewrite.golang.testify.AdoptTestifyRequireEqual
mod run . --recipe=org.openrewrite.golang.testify.AdoptTestifyRequireEqual

Install it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.