Adopt testify require.True

Proprietary

Replace if !cond { t.Fatal(...) } with require.True(t, cond) and if cond { t.Fatal(...) } with require.False(t, cond) from github.com/stretchr/testify/require. Comparison conditions are left to the Equal / Nil / Len recipes.

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

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