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 will compare two interfaces: `exp` and `got` whether its same with `equal` value.
If `exp` implement the extended `reflect.Equaler`, then it will use the method `IsEqual()` with `got` as parameter.
If comparison result is not same with `equal`, it will print the result and expectation and then terminate the test routine.
func AssertBench ¶
AssertBench will compare two interfaces: `exp` and `got` whether its same with `equal` value.
If comparison result is not same with `equal`, it will print the result and expectation and then terminate the test routine.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.