MCPcopy
hub / github.com/stretchr/testify / TestInDelta

Function TestInDelta

require/requirements_test.go:294–304  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

292}
293
294func TestInDelta(t *testing.T) {
295 t.Parallel()
296
297 InDelta(t, 1.001, 1, 0.01)
298
299 mockT := new(MockT)
300 InDelta(mockT, 1, 2, 0.5)
301 if !mockT.Failed {
302 t.Error("Check should fail")
303 }
304}
305
306func TestZero(t *testing.T) {
307 t.Parallel()

Callers

nothing calls this directly

Calls 2

InDeltaFunction · 0.70
ErrorMethod · 0.45

Tested by

no test coverage detected