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

Method checkRunParameters

config.go:101–112  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

99}
100
101func (c *config) checkRunParameters() error {
102 if c.numConns < uint64(1) {
103 return errInvalidNumberOfConns
104 }
105 if c.testType() == counted && *c.numReqs < uint64(1) {
106 return errInvalidNumberOfRequests
107 }
108 if c.testType() == timed && *c.duration < time.Second {
109 return errInvalidTestDuration
110 }
111 return nil
112}
113
114func (c *config) checkTimeoutDuration() error {
115 if c.timeout < 0 {

Callers

nothing calls this directly

Calls 1

testTypeMethod · 0.95

Tested by

no test coverage detected