Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TestCompose ¶
TestCompose is a generic function for testing trace composing. It calls given compose function with two instances of type of x and inspects result.
In a nutshell, it uses reflection. It creates two instances of x's type, say x' and x", fills each functional field of instances with stub function and then calls compose(x', x"). It then calls each functional field of composed struct – if some fields are not called in x' or x" then it fails the test.
func TestSingleTrace ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.