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

Function TestExactlyWrapper

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

Source from the content-addressed store, hash-verified

78}
79
80func TestExactlyWrapper(t *testing.T) {
81 t.Parallel()
82
83 require := New(t)
84
85 a := float32(1)
86 b := float32(1)
87 c := float64(1)
88
89 require.Exactly(a, b)
90
91 mockT := new(MockT)
92 mockRequire := New(mockT)
93 mockRequire.Exactly(a, c)
94 if !mockT.Failed {
95 t.Error("Check should fail")
96 }
97}
98
99func TestNotNilWrapper(t *testing.T) {
100 t.Parallel()

Callers

nothing calls this directly

Calls 3

NewFunction · 0.70
ExactlyMethod · 0.45
ErrorMethod · 0.45

Tested by

no test coverage detected