package
module
Version:
v0.1.0
Opens a new window with list of versions in this module.
Published: Sep 18, 2019
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
testops
A framework for organizing tests as a series of operations
Documentation
¶
Run runs all combinations of environments and test cases.
type DumpOp struct {
Name string
V interface{}
}
DumpOp is a simple operation that logs a value.
Do is the interface function of Op.
Env is the environment an operation is executed in.
It prepares and tears down the state of the test case.
type Op interface {
Do(*testing.T, interface{})
}
Op is a single operation.
type TestCase struct {
Name string
Ops []Op
}
TestCase is a named series of operations.
Runner returns a function that performs the operations in order.
The parameter is passed in as state.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.