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

Function recoverAndFailOnPanic

suite/suite.go:80–84  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

78}
79
80func recoverAndFailOnPanic(t *testing.T) {
81 t.Helper()
82 r := recover()
83 failOnPanic(t, r)
84}
85
86func failOnPanic(t *testing.T, r interface{}) {
87 t.Helper()

Callers 2

RunMethod · 0.85
RunFunction · 0.85

Calls 2

failOnPanicFunction · 0.85
HelperMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…