(t *testing.T, name string, f func())
| 132 | } |
| 133 | |
| 134 | func assertPanics(t *testing.T, name string, f func()) { |
| 135 | defer func() { |
| 136 | if r := recover(); r == nil { |
| 137 | t.Errorf("%s: didn't panic as expected", name) |
| 138 | } |
| 139 | }() |
| 140 | |
| 141 | f() |
| 142 | } |
| 143 | |
| 144 | // General warning: Go's benchmark utility (go test -bench .) increases the number of |
| 145 | // iterations until the benchmarks take a reasonable amount of time to run; memory usage |
no outgoing calls
no test coverage detected
searching dependent graphs…