package
Version:
v0.0.0-...-6789dc4
Opens a new window with list of versions in this module.
Published: Jul 30, 2021
License: GPL-3.0, GPL-3.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
Documentation
¶
Package condition implements a strategy family for use in testing.
func Chain(args ...interface{}) *chain
Chain(n1, cond1, n2, cond2, ...) returns cond1.OK() the first n1
times OK() is called, cond2.OK() the following n2 times, etc.
func Fail2Work(left int32) *fail2Work
Fail2Work fails for the first n times its OK() method is checked,
and then mysteriously starts working.
Not builds a condition that negates the one passed in.
Work is a simple boolean condition; either it works all the time
(when true), or it fails all the time (when false).
type Interface interface {
OK() bool
String() string
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.