test

package
v0.0.0-...-d3ccc4f Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Shuffle

func Shuffle(data Interface)

Shuffle shuffles Data.

Types

type Counter

type Counter struct {
	Name      string
	Succeeded int
	Failed    int
}

type Failure

type Failure struct {
	Message string
}

func NewFailure

func NewFailure(msg string, args ...interface{}) Failure

type Interface

type Interface interface {
	// Len is the number of elements in the collection.
	Len() int
	// Swap swaps the elements with indexes i and j.
	Swap(i, j int)
}

A type, typically a collection, that satisfies shuffle.Interface can be shuffled by the routines in this package.

type TestListener

type TestListener interface {
	ReportFailure(Failure)
}

type TestScript

type TestScript interface {
	Start(client driver.Client, listener TestListener) error
	Stop() error
	Pause() error
	Resume() error
	Status() TestStatus
}

type TestStatus

type TestStatus struct {
	Active   bool
	Pausing  bool
	Failures int
	Actions  int
	Counters []Counter
	Messages []string
}

Jump to

Keyboard shortcuts

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