diff options
author | Russ Cox <rsc@golang.org> | 2023-11-20 11:22:48 +1100 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2023-12-06 21:33:59 +0000 |
commit | a9c9cc07ac0d3dc73865a57e6ce45c22ada3b5c9 (patch) | |
tree | 3af7370029ab39e34d72b7a10509559a62dd74b9 /src/cmd/dist/test.go | |
parent | 459cd35ec092fdb48e1825ccd01fb630a77474bf (diff) | |
download | go-a9c9cc07ac0d3dc73865a57e6ce45c22ada3b5c9.tar.gz go-a9c9cc07ac0d3dc73865a57e6ce45c22ada3b5c9.zip |
iter, runtime: add coroutine support
The exported API is only available with GOEXPERIMENT=rangefunc.
This will let Go 1.22 users who want to experiment with rangefuncs
access an efficient implementation of iter.Pull and iter.Pull2.
For #61897.
Change-Id: I6ef5fa8f117567efe4029b7b8b0f4d9b85697fb7
Reviewed-on: https://go-review.googlesource.com/c/go/+/543319
Reviewed-by: Michael Knyszek <mknyszek@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 | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/cmd/dist/test.go b/src/cmd/dist/test.go index 4450129e08..5e62bbf4c2 100644 --- a/src/cmd/dist/test.go +++ b/src/cmd/dist/test.go @@ -719,6 +719,17 @@ 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", + }) + } + // GODEBUG=gcstoptheworld=2 tests. We only run these in long-test // mode (with GO_TEST_SHORT=0) because this is just testing a // non-critical debug setting. |