Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidResponse = errors.New("invalid response status")
ErrInvalidResponse is raised when a request returns a code different than 200.
Functions ¶
This section is empty.
Types ¶
type Tester ¶
type Tester struct { Timeout time.Duration Validator protocol.ResponseValidator // contains filtered or unexported fields }
Tester is a load tester for HTTP.
func (*Tester) After ¶
func (t *Tester) After(_ interface{})
After is called after all tests are finished.
func (*Tester) AfterEach ¶
func (t *Tester) AfterEach(_ interface{})
AfterEach is called after every test.
func (*Tester) BeforeEach ¶
BeforeEach is called before every test.
func (*Tester) RequestExecutor ¶
func (t *Tester) RequestExecutor(options interface{}) (bender.RequestExecutor, error)
RequestExecutor returns a request executor.
Click to show internal directories.
Click to hide internal directories.