mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
testing: structure package documentation
Makes finding the relevant information much easier. R=golang-dev, adg CC=golang-dev https://golang.org/cl/8353045
This commit is contained in:
parent
b6a39a2545
commit
03048ae454
1 changed files with 4 additions and 0 deletions
|
|
@ -18,6 +18,8 @@
|
||||||
// ...
|
// ...
|
||||||
// }
|
// }
|
||||||
//
|
//
|
||||||
|
// Benchmarks
|
||||||
|
//
|
||||||
// Functions of the form
|
// Functions of the form
|
||||||
// func BenchmarkXxx(*testing.B)
|
// func BenchmarkXxx(*testing.B)
|
||||||
// are considered benchmarks, and are executed by the "go test" command when
|
// are considered benchmarks, and are executed by the "go test" command when
|
||||||
|
|
@ -49,6 +51,8 @@
|
||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
//
|
//
|
||||||
|
// Examples
|
||||||
|
//
|
||||||
// The package also runs and verifies example code. Example functions may
|
// The package also runs and verifies example code. Example functions may
|
||||||
// include a concluding line comment that begins with "Output:" and is compared with
|
// include a concluding line comment that begins with "Output:" and is compared with
|
||||||
// the standard output of the function when the tests are run. (The comparison
|
// the standard output of the function when the tests are run. (The comparison
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue