runner

package
v0.0.0-...-4b634d0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 26, 2022 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConcurrencyRunner

type ConcurrencyRunner struct {
	// contains filtered or unexported fields
}

ConcurrencyRunner is a test runner for load test concurrency commands.

func NewConcurrencyRunner

func NewConcurrencyRunner(params *Params) *ConcurrencyRunner

NewConcurrencyRunner returns new ConcurrencyRunner.

func (*ConcurrencyRunner) After

func (r *ConcurrencyRunner) After(test int, options interface{})

After cleans up after the test.

func (*ConcurrencyRunner) Before

func (r *ConcurrencyRunner) Before(workers tester.Workers, opts interface{}) error

Before prepares requests, recorders and interval generator.

func (*ConcurrencyRunner) Recorder

func (r *ConcurrencyRunner) Recorder() chan interface{}

Recorder returns the recorder.

func (*ConcurrencyRunner) Recorders

func (r *ConcurrencyRunner) Recorders() []bender.Recorder

Recorders returns a list of recorders.

func (*ConcurrencyRunner) Requests

func (r *ConcurrencyRunner) Requests() chan interface{}

Requests returns the requests channel.

func (*ConcurrencyRunner) Tester

func (r *ConcurrencyRunner) Tester() tester.Tester

Tester returns the protocol tester.

func (*ConcurrencyRunner) WorkerSemaphore

func (r *ConcurrencyRunner) WorkerSemaphore() *bender.WorkerSemaphore

WorkerSemaphore returns a worker semaphore for concurrency test.

type Params

type Params struct {
	Tester           tester.Tester
	RequestGenerator RequestGenerator
}

Params represents test parameters for the runner.

type RequestGenerator

type RequestGenerator func(i int) interface{}

RequestGenerator is used to generate requests.

type ThroughputRunner

type ThroughputRunner struct {
	// contains filtered or unexported fields
}

ThroughputRunner is a test runner for load test throughput commands.

func NewThroughputRunner

func NewThroughputRunner(params *Params) *ThroughputRunner

NewThroughputRunner returns new ThroughputRunner.

func (*ThroughputRunner) After

func (r *ThroughputRunner) After(test int, options interface{})

After cleans up after the test.

func (*ThroughputRunner) Before

func (r *ThroughputRunner) Before(qps tester.QPS, opts interface{}) error

Before prepares requests, recorders and interval generator.

func (*ThroughputRunner) Intervals

func (r *ThroughputRunner) Intervals() bender.IntervalGenerator

Intervals returns the interval generator.

func (*ThroughputRunner) Recorder

func (r *ThroughputRunner) Recorder() chan interface{}

Recorder returns the recorder.

func (*ThroughputRunner) Recorders

func (r *ThroughputRunner) Recorders() []bender.Recorder

Recorders returns a list of recorders.

func (*ThroughputRunner) Requests

func (r *ThroughputRunner) Requests() chan interface{}

Requests returns the requests channel.

func (*ThroughputRunner) Tester

func (r *ThroughputRunner) Tester() tester.Tester

Tester returns the protocol tester.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL