Adopt testify require.NoError

Proprietary

Replace if err != nil { t.Fatal(err) } guards in tests with require.NoError(t, err) from github.com/stretchr/testify/require.

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

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