(t *testing.T)
| 206 | } |
| 207 | |
| 208 | func TestBadTargeterError(t *testing.T) { |
| 209 | t.Parallel() |
| 210 | atk := NewAttacker() |
| 211 | tr := func(*Target) error { return io.EOF } |
| 212 | res := atk.hit(tr, &attack{name: "", began: time.Now()}) |
| 213 | if got, want := res.Error, io.EOF.Error(); got != want { |
| 214 | t.Fatalf("got: %v, want: %v", got, want) |
| 215 | } |
| 216 | } |
| 217 | |
| 218 | func TestResponseBodyCapture(t *testing.T) { |
| 219 | t.Parallel() |
nothing calls this directly
no test coverage detected