Documentation ¶
Index ¶
- Variables
- func Benchmark(root *testing.B, mod module.Module, env *environment)
- func HaveState(state byte, module ...module.Module) types.GomegaMatcher
- func NewEnvironment(factory definitionFactory, pre preTest, post postTest, tick time.Duration) *environment
- func Test(t *testing.T, m module.Module, e *environment)
- type ExternalStateMatcher
- type ModuleExpectation
Constants ¶
This section is empty.
Variables ¶
View Source
var NProcesses = 5
Functions ¶
func NewEnvironment ¶
func NewEnvironment(factory definitionFactory, pre preTest, post postTest, tick time.Duration) *environment
Create new test environment for module
Types ¶
type ExternalStateMatcher ¶
func (*ExternalStateMatcher) FailureMessage ¶
func (matcher *ExternalStateMatcher) FailureMessage(a interface{}) (message string)
func (*ExternalStateMatcher) Match ¶
func (matcher *ExternalStateMatcher) Match(a interface{}) (success bool, err error)
func (*ExternalStateMatcher) NegatedFailureMessage ¶
func (matcher *ExternalStateMatcher) NegatedFailureMessage(a interface{}) (message string)
type ModuleExpectation ¶
type ModuleExpectation struct {
// contains filtered or unexported fields
}
func ExpectFor ¶
func ExpectFor(m module.Module) ModuleExpectation
func (ModuleExpectation) FailedWith ¶
func (m ModuleExpectation) FailedWith(state byte) types.GomegaMatcher
func (ModuleExpectation) Panic ¶
func (m ModuleExpectation) Panic() types.GomegaMatcher
func (ModuleExpectation) SucceedWith ¶
func (m ModuleExpectation) SucceedWith(state byte) types.GomegaMatcher
Click to show internal directories.
Click to hide internal directories.