()
| 75 | } |
| 76 | |
| 77 | func (c *config) testType() testTyp { |
| 78 | typ := none |
| 79 | if c.numReqs != nil { |
| 80 | typ = counted |
| 81 | } else if c.duration != nil { |
| 82 | typ = timed |
| 83 | } |
| 84 | return typ |
| 85 | } |
| 86 | |
| 87 | func (c *config) checkURL() error { |
| 88 | if c.url.Scheme != "http" && c.url.Scheme != "https" { |
no outgoing calls