Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ColoredDiffOutput = output("coloredDiffOutput")
View Source
var Output = PlainOutput
View Source
var PlainOutput = output("plain")
Functions ¶
This section is empty.
Types ¶
type Test ¶
type Test interface { Fatalf(f string, i ...interface{}) Errorf(f string, i ...interface{}) Error(p ...interface{}) }
Test implements testing.T methods used by expect. Necessary to: - allow usage of testing.T and testing.B instances - for running tests
type Val ¶
type Val struct {
// contains filtered or unexported fields
}
Val to call expectations on.
func (Val) ToBeAbout ¶
ToBeAbout asserts that the number is in deltas range of expected value. Only works for numbers.
func (Val) ToHavePrefix ¶
ToHavePrefix asserts that the string value starts with the provided prefix.
func (Val) ToHaveSuffix ¶
ToHaveSuffix asserts that the string value ends with the provided sufix.
Click to show internal directories.
Click to hide internal directories.