mirror of
https://github.com/golang/go
synced 2024-11-19 14:24:47 -07:00
50bd0e3288
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_plan9.go | ||
external_unix.go | ||
external_windows.go | ||
external.go | ||
interp_test.go | ||
interp.go | ||
map.go | ||
ops.go | ||
reflect.go | ||
value.go |