Documentation ¶
Overview ¶
Package test provide library for helping with testing.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Assert ¶
Assert compare two interfaces: `exp` and `got` for equality. If both parameters are not equal, the function will call Fatalf that describe the position (type and value) where value are not matched.
If `exp` implement the extended `reflect.Equaler`, then it will use the method `IsEqual()` with `got` as parameter.
WARNING: this method does not support recursive pointer, for example a node that point to parent and parent that point back to node again.
func AssertBench ¶
AssertBench will compare two interfaces: `exp` and `got` for equality. If both parameters are not equal, the function will call Fatalf that describe the position (type and value) where value are not matched.
Types ¶
This section is empty.