MCPcopy Create free account
hub / github.com/stretchr/objx / NoError

Method NoError

std_assert_test.go:133–139  ·  view source on GitHub ↗
(t *testing.T, err error, msgAndArgs ...interface{})

Source from the content-addressed store, hash-verified

131}
132
133func (a nonfatal) NoError(t *testing.T, err error, msgAndArgs ...interface{}) bool {
134 t.Helper()
135 if err != nil {
136 return a.fail(t, "expected no error, got: %v", err)
137 }
138 return true
139}
140func (a fatal) NoError(t *testing.T, err error, msgAndArgs ...interface{}) {
141 t.Helper()
142 if err != nil {

Callers

nothing calls this directly

Calls 1

failMethod · 0.95

Tested by

no test coverage detected