MCPcopy Create free account
hub / github.com/stretchr/testify / testAutogeneratedFunction

Function testAutogeneratedFunction

assert/assertions_test.go:2130–2142  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2128}
2129
2130func testAutogeneratedFunction() {
2131 defer func() {
2132 if err := recover(); err == nil {
2133 panic("did not panic")
2134 }
2135 CallerInfo()
2136 }()
2137 t := struct {
2138 io.Closer
2139 }{}
2140 c := t
2141 c.Close()
2142}
2143
2144func TestCallerInfoWithAutogeneratedFunctions(t *testing.T) {
2145 NotPanics(t, func() {

Calls 1

CallerInfoFunction · 0.85

Tested by

no test coverage detected