MCPcopy Create free account
hub / github.com/expr-lang/expr / TestNoError

Function TestNoError

internal/testify/require/requirements_test.go:189–198  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

187}
188
189func TestNoError(t *testing.T) {
190
191 NoError(t, nil)
192
193 mockT := new(MockT)
194 NoError(mockT, errors.New("some error"))
195 if !mockT.Failed {
196 t.Error("Check should fail")
197 }
198}
199
200func TestError(t *testing.T) {
201

Callers

nothing calls this directly

Calls 2

NoErrorFunction · 0.70
ErrorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…