Adopt testify assert.True
ProprietaryReplace if !cond { t.Error(...) } with assert.True(t, cond) and if cond { t.Error(...) } with assert.False(t, cond) from github.com/stretchr/testify/assert. Comparison conditions are left to the Equal / Nil / Len recipes.
org. openrewrite. golang. testify. AdoptTestifyAssertTruemod run . --recipe= org. openrewrite. golang. testify. AdoptTestifyAssertTrueInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.