Documentation ¶
Index ¶
- Variables
- func AssertAny(t Tester, result interface{}, expected ...interface{})
- func AssertEqual(t Tester, result, expected interface{})
- func AssertInSlice(t Tester, expected, slice interface{})
- func GetCLIContext(t *testing.T, args []string, flags map[string]interface{}) *cli.Context
- func RunTest(t *testing.T, testCase TestCase)
- func RunTests(t *testing.T, testCases []TestCase)
- func WaitFor(t Tester, interval, timeout time.Duration, conditionSatisfied func() bool)
- type ErrorGenerator
- type Recorder
- type Reporter
- func (r *Reporter) AssertAny(result interface{}, expected ...interface{})
- func (r *Reporter) AssertEqual(result, expected interface{})
- func (r *Reporter) AssertEqualf(result, expected interface{}, format string, args ...interface{})
- func (r *Reporter) AssertInSlice(expected, slice interface{})
- func (r *Reporter) Error(err error)
- func (r *Reporter) Errorf(format string, args ...interface{})
- func (r *Reporter) Fatal(err error)
- func (r *Reporter) Fatalf(format string, args ...interface{})
- func (r *Reporter) Log(str string)
- func (r *Reporter) Logf(format string, args ...interface{})
- type StubClock
- type TestCase
- type Tester
Constants ¶
This section is empty.
Variables ¶
View Source
var TEST_TIMEOUT = time.Minute * 15
Functions ¶
func AssertEqual ¶
func AssertEqual(t Tester, result, expected interface{})
func AssertInSlice ¶
func AssertInSlice(t Tester, expected, slice interface{})
func GetCLIContext ¶
Types ¶
type ErrorGenerator ¶
type ErrorGenerator struct { Index int // contains filtered or unexported fields }
func (*ErrorGenerator) Error ¶
func (e *ErrorGenerator) Error() error
func (*ErrorGenerator) Set ¶
func (e *ErrorGenerator) Set(i int, err error)
type Recorder ¶
type Recorder struct {
// contains filtered or unexported fields
}
Mock of Recorder interface
func NewRecorder ¶
func NewRecorder(ctrl *gomock.Controller) *Recorder
type Reporter ¶
func (*Reporter) AssertAny ¶
func (r *Reporter) AssertAny(result interface{}, expected ...interface{})
func (*Reporter) AssertEqual ¶
func (r *Reporter) AssertEqual(result, expected interface{})
func (*Reporter) AssertEqualf ¶
func (*Reporter) AssertInSlice ¶
func (r *Reporter) AssertInSlice(expected, slice interface{})
Click to show internal directories.
Click to hide internal directories.