]> Cypherpunks repositories - gostls13.git/commitdiff
testing: structure package documentation
authorVolker Dobler <dr.volker.dobler@gmail.com>
Fri, 5 Apr 2013 02:43:18 +0000 (13:43 +1100)
committerAndrew Gerrand <adg@golang.org>
Fri, 5 Apr 2013 02:43:18 +0000 (13:43 +1100)
Makes finding the relevant information much easier.

R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/8353045

src/pkg/testing/testing.go

index c834aa1f7e5406aa41584749e5c91af4e7389d92..312d2873296c79ea77026d119646d19ef000cdf8 100644 (file)
@@ -18,6 +18,8 @@
 //         ...
 //     }
 //
+// Benchmarks
+//
 // Functions of the form
 //     func BenchmarkXxx(*testing.B)
 // 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
 // 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