MCPcopy Create free account
hub / github.com/codesenberg/bombardier / TestCheckArgsInvalidRequestMethod

Function TestCheckArgsInvalidRequestMethod

config_test.go:278–296  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

276}
277
278func TestCheckArgsInvalidRequestMethod(t *testing.T) {
279 c := config{
280 numConns: defaultNumberOfConns,
281 numReqs: &defaultNumberOfReqs,
282 duration: &defaultTestDuration,
283 url: ParseURLOrPanic("http://localhost:8080"),
284 headers: nil,
285 timeout: defaultTimeout,
286 method: "ABRACADABRA",
287 body: "",
288 }
289 e := c.checkArgs()
290 if e == nil {
291 t.Fail()
292 }
293 if _, ok := e.(*invalidHTTPMethodError); !ok {
294 t.Fail()
295 }
296}
297
298func TestCheckArgsTestType(t *testing.T) {
299 countedConfig := config{

Callers

nothing calls this directly

Calls 2

checkArgsMethod · 0.95
ParseURLOrPanicFunction · 0.85

Tested by

no test coverage detected