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

Function TestInDeltaWrapper

require/forward_requirements_test.go:316–328  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

314}
315
316func TestInDeltaWrapper(t *testing.T) {
317 t.Parallel()
318
319 require := New(t)
320 require.InDelta(1.001, 1, 0.01)
321
322 mockT := new(MockT)
323 mockRequire := New(mockT)
324 mockRequire.InDelta(1, 2, 0.5)
325 if !mockT.Failed {
326 t.Error("Check should fail")
327 }
328}
329
330func TestZeroWrapper(t *testing.T) {
331 t.Parallel()

Callers

nothing calls this directly

Calls 3

NewFunction · 0.70
InDeltaMethod · 0.45
ErrorMethod · 0.45

Tested by

no test coverage detected