Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckErr ¶
CheckErr can be used to simplify test code that expects no errors. Instead of:
v, err := SomeFunc() if err != nil { .. }
we can use:
v := testutils.CheckErr(someFunc())
func CheckErr2 ¶
CheckErr2 can be used to simplify test code that expects no errors. Instead of:
v, w, err := SomeFunc() if err != nil { .. }
we can use:
v, w := testutils.CheckErr2(someFunc())
func DurationIsAtLeast ¶
DurationIsAtLeast verifies that the given duration is at least the given value.
func RandBytes ¶ added in v2.1.0
RandBytes returns a byte slice of the given length with random data.
func RandIntInRange ¶ added in v2.1.0
RandIntInRange returns a value in [min, max)
Types ¶
This section is empty.
Directories
¶
Path | Synopsis |
---|---|
Package indenttree implements a simple text processor which parses a hierarchy defined using indentation; see Parse.
|
Package indenttree implements a simple text processor which parses a hierarchy defined using indentation; see Parse. |
Click to show internal directories.
Click to hide internal directories.