]> Cypherpunks repositories - gostls13.git/commit
testing: added name matcher and sanitizer
authorMarcel van Lohuizen <mpvl@golang.org>
Fri, 29 Jan 2016 15:57:02 +0000 (16:57 +0100)
committerMarcel van Lohuizen <mpvl@golang.org>
Tue, 22 Mar 2016 14:47:39 +0000 (14:47 +0000)
commit00a2a94c1eab027bc1ac5bbb9f30329dec14cf87
tree91d97c16e311a62de0c3ffad2eed26bd23a63689
parent34699bc7a81668f3a3d7b0f862e0a9f173926c66
testing: added name matcher and sanitizer

The matcher is responsible for sanitizing and uniquing the
test and benchmark names and thus needs to be included before the
API can be exposed.

Matching currently uses the regexp to only match the top-level
tests/benchmarks.

Support for subtest matching is for another CL.

Change-Id: I7c8464068faef7ebc179b03a7fe3d01122cc4f0b
Reviewed-on: https://go-review.googlesource.com/18897
Reviewed-by: Russ Cox <rsc@golang.org>
Run-TryBot: Marcel van Lohuizen <mpvl@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/testing/benchmark.go
src/testing/match.go [new file with mode: 0644]
src/testing/match_test.go [new file with mode: 0644]
src/testing/sub_test.go
src/testing/testing.go