aboutsummaryrefslogtreecommitdiff
path: root/src/testing
AgeCommit message (Collapse)Author
2015-03-27testing/quick: fix commentDmitry Vyukov
There is no top-level Values function. Change-Id: I3ea2eea0b5f77f3e1a3f75d1a6472507ef2888bb Reviewed-on: https://go-review.googlesource.com/8196 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2015-03-20testing: document that flag.Parse is not called when TestMain runsShenghou Ma
Fixes #9825. Change-Id: Id7eeaa14c26201db34db0820371c92a63af485b0 Reviewed-on: https://go-review.googlesource.com/7604 Reviewed-by: Rob Pike <r@golang.org>
2015-02-07testing: pad benchmark names to align resultsHÃ¥vard Haugen
Fixes #8780 Change-Id: I09cf01ff9722eed49086992a12774f2de81d16f2 Reviewed-on: https://go-review.googlesource.com/2840 Reviewed-by: Andrew Gerrand <adg@golang.org>
2015-02-04testing/quick: support generation of array types in ValueChris Kastorff
Generating array types like [4]int would fail even though the int type is generatable. Allow generating values of array types when the inner type is generatable. Change-Id: I7d71b3c18edb3737e2fec1ddf5e36c9dc8401971 Reviewed-on: https://go-review.googlesource.com/3865 Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
2015-01-28testing: add tracing supportDmitry Vyukov
testing part of tracing functionality: https://docs.google.com/document/u/1/d/1FP5apqzBgr7ahCCgFO-yoVhk4YZrNIDNf9RybngBc14/pub Full change: https://codereview.appspot.com/146920043 Change-Id: Ia3c2c4417106937d5775b0e7064db92c1fc36679 Reviewed-on: https://go-review.googlesource.com/1461 Reviewed-by: Russ Cox <rsc@golang.org>
2014-12-29testing/iotest: fix copy/paste error in commentRobert Griesemer
Reported via unsupported GitHub pull request: https://github.com/golang/go/pull/9436/ Change-Id: I12b00e8ccac700bb36b200196e2867fcc863fdf1 Reviewed-on: https://go-review.googlesource.com/2139 Reviewed-by: Alan Donovan <adonovan@google.com>
2014-12-20testing: style change: omit unnecessary newIan Lance Taylor
This was brought to my attention because a user thought that because the file was named "example.go" it served as an example of good coding practice. It's not an example, of course, but may as well use a more idiomatic style anyhow. Change-Id: I7aa720f603f09f7d597fb7536dbf46ef09144e28 Reviewed-on: https://go-review.googlesource.com/1902 Reviewed-by: Minux Ma <minux@golang.org>
2014-10-16runtime: fix memory profilerDmitriy Vyukov
There are 3 issues: 1. Skip argument of callers is off by 3, so that all allocations are deep inside of memory profiler. 2. Memory profiling statistics are not updated after runtime.GC. 3. Testing package does not update memory profiling statistics before capturing the profile. Also add an end-to-end test. Fixes #8867. LGTM=rsc R=rsc CC=golang-codereviews https://golang.org/cl/148710043
2014-10-01testing: clearer commentRobert Griesemer
Fixes #8797. LGTM=r R=r CC=golang-codereviews https://golang.org/cl/146680043
2014-09-19cmd/go, testing: add TestMain supportRuss Cox
Fixes #8202. LGTM=r, bradfitz R=r, josharian, bradfitz CC=golang-codereviews https://golang.org/cl/148770043
2014-09-17runtime: account for tiny allocs, for testing.AllocsPerRunRuss Cox
Fixes #8734. LGTM=r, bradfitz, dvyukov R=bradfitz, r, dvyukov CC=golang-codereviews, iant, khr https://golang.org/cl/143150043
2014-09-09testing: read coverage counters atomicallyRob Pike
For -mode=atomic, we need to read the counters using an atomic load to avoid a race. Not worth worrying about when -mode=atomic is set during generation of the profile, so we use atomic loads always. Fixes #8630. LGTM=rsc R=dvyukov, rsc CC=golang-codereviews https://golang.org/cl/141800043
2014-09-08build: move package sources from src/pkg to srcRuss Cox
Preparation was in CL 134570043. This CL contains only the effect of 'hg mv src/pkg/* src'. For more about the move, see golang.org/s/go14nopkg.