encoding/json/jsontext: skip inline-dependent test on noopt builders

TestTokenStringAllocations verifies a behavior of the inliner. Skip the
test on the noopt builders, where inlining is disabled.

Fixes #79460
Fixes #79462
Fixes #79463
Fixes #79465
Fixes #79466
Fixes #79469
Fixes #79470
Fixes #79471
Fixes #79472

Change-Id: I848b2b7913c848aefa0ed788c984590c9207dafa
Reviewed-on: https://go-review.googlesource.com/c/go/+/779920
LUCI-TryBot-Result: golang-scoped@luci-project-accounts.iam.gserviceaccount.com <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
Auto-Submit: Michael Pratt <mpratt@google.com>
Reviewed-by: Joseph Tsai <joetsai@digital-static.net>
Auto-Submit: Damien Neil <dneil@google.com>
Reviewed-by: Damien Neil <dneil@google.com>
Auto-Submit: Rhys Hiltner <rhys.hiltner@gmail.com>
This commit is contained in:
Rhys Hiltner 2026-05-19 10:14:23 -07:00 committed by Gopher Robot
parent e01f29f918
commit c9a3e8bbd2

View file

@ -8,6 +8,7 @@ package jsontext
import (
"errors"
"internal/testenv"
"math"
"reflect"
"strconv"
@ -15,6 +16,7 @@ import (
)
func TestTokenStringAllocations(t *testing.T) {
testenv.SkipIfOptimizationOff(t)
if testing.CoverMode() != "" {
t.Skip("coverage mode breaks the compiler optimization this depends on")
}