(t *testing.T, op func(), errorMsg string)
| 134 | } |
| 135 | |
| 136 | func expectPanic(t *testing.T, op func(), errorMsg string) { |
| 137 | defer func() { |
| 138 | if err := recover(); err == nil { |
| 139 | t.Error(errorMsg) |
| 140 | } |
| 141 | }() |
| 142 | |
| 143 | op() |
| 144 | } |
| 145 | |
| 146 | func TestCounterAddInf(t *testing.T) { |
| 147 | now := time.Now() |
no test coverage detected