Package.CreateTestMainFunction() creates a function called main and adds it to the package. This function calls testing.Main in the Go library with the appropriate arguments: slices of test, benchmark and example functions from the package. Tested by running the interpreter on the following tests: - unicode/script_test.go - unicode/digit_test.go - hash/crc32/crc32_test.go - path/path_test.go It's also covered indirectly via the pointer analysis. R=crawshaw, gri CC=golang-dev https://golang.org/cl/12814046 |
||
|---|---|---|
| cmd | ||
| dashboard | ||
| go | ||
| godoc | ||
| gotype | ||
| importer | ||
| ssa | ||
| .hgignore | ||
| AUTHORS | ||
| CONTRIBUTORS | ||
| LICENSE | ||
| PATENTS | ||
| README | ||
| codereview.cfg | ||
README
This subrepository holds the source for various packages and tools that support the Go programming language. Although at least some of the tools themselves will be included in binary Go distributions, the packages from which they are built are of little interest to most Go programmers. To submit changes to this repository, see http://golang.org/doc/contribute.html.