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

Function testAutogeneratedFunction

assert/assertions_test.go:2531–2543  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2529}
2530
2531func testAutogeneratedFunction() {
2532 defer func() {
2533 if err := recover(); err == nil {
2534 panic("did not panic")
2535 }
2536 CallerInfo()
2537 }()
2538 t := struct {
2539 io.Closer
2540 }{}
2541 c := t
2542 c.Close()
2543}
2544
2545func TestCallerInfoWithAutogeneratedFunctions(t *testing.T) {
2546 t.Parallel()

Calls 1

CallerInfoFunction · 0.85

Tested by

no test coverage detected