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 |
||
|---|---|---|
| .. | ||
| testdata | ||
| external.go | ||
| external_plan9.go | ||
| external_unix.go | ||
| external_windows.go | ||
| interp.go | ||
| interp_test.go | ||
| map.go | ||
| ops.go | ||
| reflect.go | ||
| value.go | ||