]> Cypherpunks.ru repositories - gostls13.git/commit
testing: increase alternation precedence
authorEthan Reesor <ethan.reesor@gmail.com>
Fri, 20 Aug 2021 23:57:45 +0000 (18:57 -0500)
committerIan Lance Taylor <iant@golang.org>
Fri, 10 Sep 2021 17:09:57 +0000 (17:09 +0000)
commit025308fe084264538f49924b3f52d8d6b6359658
treec981b77f97a87b6e68f808e4f291b261cd6afdcf
parent5a94a90d84cc65a04ab44737baa406023e9b2001
testing: increase alternation precedence

Updates handling of go test flags -run and -bench to give alternation
precendence over the / delimiter. Currently, `A/B|C/D` is effectively
`A/(B|C)/D` - with this change, it changes to effectively `(A/B)|(C/D)`.

Fixes #39904

Change-Id: Iebe5efd8d91c72eed6351bd63b4689b0fcb0ed0f
Reviewed-on: https://go-review.googlesource.com/c/go/+/343883
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Trust: Than McIntosh <thanm@google.com>
src/testing/match.go
src/testing/match_test.go