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

Function TestExactly

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

Source from the content-addressed store, hash-verified

89}
90
91func TestExactly(t *testing.T) {
92 t.Parallel()
93
94 a := float32(1)
95 b := float32(1)
96 c := float64(1)
97
98 Exactly(t, a, b)
99
100 mockT := new(MockT)
101 Exactly(mockT, a, c)
102 if !mockT.Failed {
103 t.Error("Check should fail")
104 }
105}
106
107func TestNotNil(t *testing.T) {
108 t.Parallel()

Callers

nothing calls this directly

Calls 2

ExactlyFunction · 0.70
ErrorMethod · 0.45

Tested by

no test coverage detected