Adopt testify assert.True

Proprietary

Replace 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.AdoptTestifyAssertTrue
mod run . --recipe=org.openrewrite.golang.testify.AdoptTestifyAssertTrue

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