test

package
v3.6.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2014 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockProcess

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

func (*MockProcess) Logf

func (p *MockProcess) Logf(msg string, v ...interface{}) string

func (*MockProcess) Start

func (p *MockProcess) Start() error

func (*MockProcess) Stop

func (p *MockProcess) Stop() error

func (*MockProcess) String

func (p *MockProcess) String() string

func (*MockProcess) Wait

func (p *MockProcess) Wait() error

func (*MockProcess) WaitRunning

func (p *MockProcess) WaitRunning() bool

type NoopRetryer

type NoopRetryer struct{}

func (*NoopRetryer) Wait

func (retry *NoopRetryer) Wait(msg string) bool

type SeqAction

type SeqAction int

type SeqDelay

type SeqDelay time.Duration

type SeqState

type SeqState string

type Sequence

type Sequence []interface{}

Sequence is a test abstraction to perform a variety of actions, and check state equality after certain delays, on a state machine.

func (Sequence) Test

func (s Sequence) Test(t *testing.T, m *state.StateMachine) state.State

Test runs the sequence performing the necessary state equality.

type ThriceRetryer

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

ThriceRetryer retries only three times.

func (*ThriceRetryer) Wait

func (retry *ThriceRetryer) Wait(msg string) bool

Jump to

Keyboard shortcuts

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