Adopt testify assert.Error

Proprietary

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

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

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