MCPcopy Create free account
hub / github.com/evilsocket/sum / assertPanic

Function assertPanic

wrapper/record_test.go:10–17  ·  view source on GitHub ↗
(t *testing.T, msg string, f func())

Source from the content-addressed store, hash-verified

8)
9
10func assertPanic(t *testing.T, msg string, f func()) {
11 defer func() {
12 if r := recover(); r == nil {
13 t.Fatal(msg)
14 }
15 }()
16 f()
17}
18
19func TestWrapRecord(t *testing.T) {
20 wrapped := WrapRecord(&testRecord)

Calls

no outgoing calls

Tested by

no test coverage detected