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

Function TestNoErrorWrapper

internal/testify/require/forward_requirements_test.go:175–185  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

173}
174
175func TestNoErrorWrapper(t *testing.T) {
176 require := New(t)
177 require.NoError(nil)
178
179 mockT := new(MockT)
180 mockRequire := New(mockT)
181 mockRequire.NoError(errors.New("some error"))
182 if !mockT.Failed {
183 t.Error("Check should fail")
184 }
185}
186
187func TestErrorWrapper(t *testing.T) {
188 require := New(t)

Callers

nothing calls this directly

Calls 3

NewFunction · 0.70
NoErrorMethod · 0.45
ErrorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…