Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
DeepEquals check.Checker = &diffChecker{
&check.CheckerInfo{Name: "Diff", Params: defaultParams},
}
)
DeepEquals is a GoCheck checker that does a diff between two objects and pretty-prints any difference between the two. It can act as a substitute for DeepEquals.
View Source
var (
Equals check.Checker = &cmpChecker{
&check.CheckerInfo{Name: "Equals", Params: cmpParams},
}
)
Equals is a GoCheck checker that does a diff between two objects and pretty-prints any difference between the two. It can act as a substitute for DeepEquals.
View Source
var HasKey check.Checker = &hasKeyChecker{ &check.CheckerInfo{Name: "HasKey", Params: []string{"map", "key"}}, }
The HasKey checker verifies that the obtained map contains the provided key.
For example:
c.Assert(myMap, HasKey, "five")
View Source
var (
PartialMatches check.Checker = &matchesChecker{
&check.CheckerInfo{Name: "PartialMatches", Params: matchesParams},
}
)
PartialMatches is a GoCheck checker that the provided regex matches at least part of the provided string. It can act as a substitute for Matches.
Functions ¶
func DeepAllowUnexported ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.