you are using the testing framework incorrectly-
https://golang.org/pkg/testing/your function is incompatible with the test harness. The function signature must follow a few rules.
Your test file does not have any functions matching the required signature.
What you are doing is running an example. The test harness ran your function with no problems so you got no output.
// This Example function fails in the test harness as the fmt.Println output does not match the expected output conveyed within the Output tag. The test harness throws a fit.
func ExampleMethod1 ( ) {
fmt.Println("hi")
// Output: hello
}
// This Example function passes in the test harness as the fmt.Println
output does match the expected output conveyed within the Output
tag. The test harness is silent.
func ExampleMethod1 ( ) {
fmt.Println("hi")
// Output: hi