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

Function TestReporter_FatalReporter

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

Source from the content-addressed store, hash-verified

49}
50
51func TestReporter_FatalReporter(t *testing.T) {
52 mockBackend := &mockT{}
53 reporter := NewFatalReporter(mockBackend)
54
55 reporter.Errorf("test")
56 assert.True(t, mockBackend.fatalfInvoked)
57}
58
59func TestReporter_PanicReporter(t *testing.T) {
60 reporter := NewPanicReporter()

Callers

nothing calls this directly

Calls 3

ErrorfMethod · 0.95
NewFatalReporterFunction · 0.85
TrueMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…