diff options
author | Ian Lance Taylor <iant@golang.org> | 2024-03-01 17:40:50 -0800 |
---|---|---|
committer | Gopher Robot <gobot@golang.org> | 2024-05-09 19:20:55 +0000 |
commit | 0b5f72251bb564c7780b61f56a37faab31ed3512 (patch) | |
tree | 1fe53ec8a24044993d6a425f5aedc72c65197f40 /src/cmd/dist/test.go | |
parent | cecbf4f28eed1327249ebb39e13c2e3ec6d12476 (diff) | |
download | go-0b5f72251bb564c7780b61f56a37faab31ed3512.tar.gz go-0b5f72251bb564c7780b61f56a37faab31ed3512.zip |
slices: add iterator-related functions
Fixes #61899
Change-Id: Icbde1ac8293723eefc3251008ae9711e756ed1b3
Reviewed-on: https://go-review.googlesource.com/c/go/+/568477
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Alan Donovan <adonovan@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Diffstat (limited to 'src/cmd/dist/test.go')
-rw-r--r-- | src/cmd/dist/test.go | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/src/cmd/dist/test.go b/src/cmd/dist/test.go index a87c2a1aae..b0a3bd7e52 100644 --- a/src/cmd/dist/test.go +++ b/src/cmd/dist/test.go @@ -713,13 +713,15 @@ func (t *tester) registerTests() { // GOEXPERIMENT=rangefunc tests if !t.compileOnly { - t.registerTest("GOEXPERIMENT=rangefunc go test iter", - &goTest{ - variant: "iter", - short: t.short, - env: []string{"GOEXPERIMENT=rangefunc"}, - pkg: "iter", - }) + for _, pkg := range []string{"iter", "slices"} { + t.registerTest("GOEXPERIMENT=rangefunc", + &goTest{ + variant: pkg, + short: t.short, + env: []string{"GOEXPERIMENT=rangefunc"}, + pkg: pkg, + }) + } } // GODEBUG=gcstoptheworld=2 tests. We only run these in long-test |