From: Volker Dobler Date: Fri, 5 Apr 2013 02:43:18 +0000 (+1100) Subject: testing: structure package documentation X-Git-Tag: go1.1rc2~169 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=03048ae454131e5274161c6dbe044a5f30a263db;p=gostls13.git testing: structure package documentation Makes finding the relevant information much easier. R=golang-dev, adg CC=golang-dev https://golang.org/cl/8353045 --- diff --git a/src/pkg/testing/testing.go b/src/pkg/testing/testing.go index c834aa1f7e..312d287329 100644 --- a/src/pkg/testing/testing.go +++ b/src/pkg/testing/testing.go @@ -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