MCPcopy Create free account
hub / github.com/gavv/httpexpect / TestReporter_RequireReporter

Function TestReporter_RequireReporter

reporter_test.go:43–49  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

41}
42
43func TestReporter_RequireReporter(t *testing.T) {
44 mockBackend := &mockRequireT{}
45 reporter := NewRequireReporter(mockBackend)
46
47 reporter.Errorf("test")
48 assert.True(t, mockBackend.failNowInvoked)
49}
50
51func TestReporter_FatalReporter(t *testing.T) {
52 mockBackend := &mockT{}

Callers

nothing calls this directly

Calls 3

ErrorfMethod · 0.95
NewRequireReporterFunction · 0.85
TrueMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…