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

Method NoError

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

Source from the content-addressed store, hash-verified

138 return true
139}
140func (a fatal) NoError(t *testing.T, err error, msgAndArgs ...interface{}) {
141 t.Helper()
142 if err != nil {
143 a.fail(t, "expected no error, got: %v", err)
144 }
145}
146
147func (a nonfatal) Error(t *testing.T, err error, msgAndArgs ...interface{}) bool {
148 t.Helper()

Callers 8

TestMapFromBase64StringFunction · 0.45
TestMapFromURLQueryFunction · 0.45
TestJSONTopLevelSliceFunction · 0.45
TestConversionJSONFunction · 0.45
TestConversionBase64Function · 0.45

Calls 1

failMethod · 0.95

Tested by

no test coverage detected