Documentation ¶
Overview ¶
Package ut provides commonly used func for unit testing
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertEqual ¶
AssertEqual return result of comparison. AssetEqual is wrapping google compare which will try to use Equal func of the object first. Don't use reflect.DeepEqual directly because it will not compare time correctly. Recommended to use AssertEqual
Note: If comparing struct that contain unexported field, must add cmp.AllowUnexported(expected, actual) as opts. However, this option only allow comparing of value struct. Therefore, we need to dereference pointer struct.
func AssertNotEqual ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.