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

Function TestInDelta

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

Source from the content-addressed store, hash-verified

267}
268
269func TestInDelta(t *testing.T) {
270
271 InDelta(t, 1.001, 1, 0.01)
272
273 mockT := new(MockT)
274 InDelta(mockT, 1, 2, 0.5)
275 if !mockT.Failed {
276 t.Error("Check should fail")
277 }
278}
279
280func TestZero(t *testing.T) {
281

Callers

nothing calls this directly

Calls 2

InDeltaFunction · 0.70
ErrorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…