jqtest

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2017 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TestSubtests

func TestSubtests(t *testing.T, runner SubtestRunner)

TestSubtests runs predefined subtests by the specified runner.

Types

type Subtest

type Subtest func(t *testing.T, jq jobqueue.Impl)

Subtest is an interface of a test function where the queue is assumed to be empty before running the test.

type SubtestRunner

type SubtestRunner func(t *testing.T, db, q string, tests []Subtest)

SubtestRunner is an interface of a function that runs multiple subtests. An instance of this interface is required to be a function which runs specified subtests with truncating data store contents before running each subtest.

Jump to

Keyboard shortcuts

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