Adopt testify assert.NoError

Proprietary

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

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

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