MCPcopy Index your code
hub / github.com/expr-lang/expr / TestInDeltaWrapper

Function TestInDeltaWrapper

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

Source from the content-addressed store, hash-verified

260}
261
262func TestInDeltaWrapper(t *testing.T) {
263 require := New(t)
264 require.InDelta(1.001, 1, 0.01)
265
266 mockT := new(MockT)
267 mockRequire := New(mockT)
268 mockRequire.InDelta(1, 2, 0.5)
269 if !mockT.Failed {
270 t.Error("Check should fail")
271 }
272}
273
274func TestZeroWrapper(t *testing.T) {
275 require := New(t)

Callers

nothing calls this directly

Calls 3

NewFunction · 0.70
InDeltaMethod · 0.45
ErrorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…