Documentation ¶
Index ¶
Constants ¶
View Source
const ( StatusRunning = recorder.StatusRunning StatusCanceled = recorder.StatusCanceled StatusTimeout = recorder.StatusTimeout StatusDone = recorder.StatusDone )
Variables ¶
View Source
var ErrCanceled = recorder.ErrCanceled
Functions ¶
This section is empty.
Types ¶
type InvalidRunnerError ¶
type InvalidRunnerError struct {
Errors []error
}
InvalidRunnerError is the errors returned by Runner.Validate when values are missing or invalid.
func (*InvalidRunnerError) Error ¶
func (e *InvalidRunnerError) Error() string
Error returns the joined errors of InvalidRunnerError as a string.
type MetricsAggregate ¶
type MetricsField ¶
type MetricsTimeStats ¶
type MetricsValue ¶
type RecordingProgress ¶
type RecordingStatus ¶
type Report ¶
type Report struct { Metadata Metadata Metrics metrics.Aggregate Tests tests.SuiteResult }
Report represents a run result as exported by the runner.
type Runner ¶
type Runner struct { Request *http.Request Requests int Concurrency int Interval time.Duration RequestTimeout time.Duration GlobalTimeout time.Duration Tests []tests.Case OnProgress func(RecordingProgress) // contains filtered or unexported fields }
func DefaultRunner ¶
func DefaultRunner() Runner
DefaultRunner returns a default Runner that is ready to use, except for Runner.Request that still needs to be set.
func (Runner) Validate ¶
Validate returns a non-nil InvalidConfigError if any of its fields does not meet the requirements.
func (Runner) WithNewRequest ¶
WithNewRequest calls http.NewRequest with the given parameters and attaches the result to the Runner. If the call to http.NewRequest returns a non-nil error, it panics with the content of that error.
type TestCaseResult ¶
type TestCaseResult = tests.CaseResult
type TestPredicate ¶
type TestSuiteResults ¶
type TestSuiteResults = tests.SuiteResult
Click to show internal directories.
Click to hide internal directories.