(t *testing.T, msg string, f func())
| 8 | ) |
| 9 | |
| 10 | func 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 | |
| 19 | func TestWrapRecord(t *testing.T) { |
| 20 | wrapped := WrapRecord(&testRecord) |
no outgoing calls
no test coverage detected