The magic is in cmd/go/test.go, you'll see it sniffs all public
methods that match ^(Test|Benchmark) and constructs a new main package
that passes them to the test runner inside the test package. Look for
the template about 2/3rds of the way down the file.
> --
> You received this message because you are subscribed to the Google Groups "golang-nuts" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
golang-nuts...@googlegroups.com.
> For more options, visit
https://groups.google.com/groups/opt_out.
>
>