Adopt testify require.Error

Proprietary

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

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

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