Documentation ¶
Overview ¶
Package gocheckeres contains additional Checker implementations.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var GreaterThan gocheck.Checker = &greaterThanChecker{ &gocheck.CheckerInfo{Name: "GreaterThan", Params: []string{"obtained", "n"}}, }
The GreaterThan checker verifies that the obtained value is strictly greater than provided length.
For example:
c.Assert(len(list), GreaterThan, 5)
View Source
var LessThan gocheck.Checker = &lessThanChecker{ &gocheck.CheckerInfo{Name: "LessThan", Params: []string{"obtained", "n"}}, }
The LessThan checker verifies that the obtained value is strictly less than provided value.
For example:
c.Check(len(list), LessThan, 5)
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.