diff --git a/cue/testdata/definitions/issue342.txtar b/cue/testdata/definitions/issue342.txtar index 86c9c4b5c..cbcab02b9 100644 --- a/cue/testdata/definitions/issue342.txtar +++ b/cue/testdata/definitions/issue342.txtar @@ -12,7 +12,7 @@ X: { } } - var: "XXX" + var: "bar" // Validate(concrete) after Fill() on Complex.ref from a "static" key will succeed "test_1": #Complex @@ -23,10 +23,10 @@ X: { // Validate(concrete) after Fill() on Complex.ref from a "dynamic" key will fail "test_3_\(var)": #Complex - test_3_XXX: ref: "FOO" + test_3_bar: ref: "FOO" } -Z: X.test_3_XXX.ref +Z: X.test_3_bar.ref -- out/eval/stats -- Leaks: 0 Freed: 24 @@ -48,16 +48,16 @@ Disjuncts: 24 }, (#struct){ local: (string){ string } }) } - var: (string){ "XXX" } + var: (string){ "bar" } test_1: (#struct){ |((#struct){ ref: (string){ string } }, (#struct){ local: (string){ string } }) } - test_3_XXX: (#struct){ + test_3_bar: (#struct){ ref: (string){ "FOO" } } - test_2_XXX: ~(X.#Simple) + test_2_bar: ~(X.#Simple) } Z: (string){ "FOO" } } @@ -66,13 +66,13 @@ diff old new --- old +++ new @@ -17,9 +17,7 @@ - test_3_XXX: (#struct){ + test_3_bar: (#struct){ ref: (string){ "FOO" } } -- test_2_XXX: (#struct){ +- test_2_bar: (#struct){ - ref: (string){ string } - } -+ test_2_XXX: ~(X.#Simple) ++ test_2_bar: ~(X.#Simple) } Z: (string){ "FOO" } } @@ -87,16 +87,16 @@ diff old new }, (#struct){ local: (string){ string } }) } - var: (string){ "XXX" } + var: (string){ "bar" } test_1: (#struct){ |((#struct){ ref: (string){ string } }, (#struct){ local: (string){ string } }) } - test_3_XXX: (#struct){ + test_3_bar: (#struct){ ref: (string){ "FOO" } } - test_2_XXX: (#struct){ + test_2_bar: (#struct){ ref: (string){ string } } } @@ -116,13 +116,13 @@ diff old new local: string }) } - var: "XXX" + var: "bar" test_1: 〈0;#Complex〉 "test_2_\(〈0;var〉)": 〈0;#Simple〉 "test_3_\(〈0;var〉)": 〈0;#Complex〉 - test_3_XXX: { + test_3_bar: { ref: "FOO" } } - Z: 〈0;X〉.test_3_XXX.ref + Z: 〈0;X〉.test_3_bar.ref } diff --git a/cue/testdata/eval/issue3801.txtar b/cue/testdata/eval/issue3801.txtar index 80ac8c90d..6d3a7d0d8 100644 --- a/cue/testdata/eval/issue3801.txtar +++ b/cue/testdata/eval/issue3801.txtar @@ -7,9 +7,9 @@ issue3801: let: reduced: { let X = {a: "\(in)" }.a out: X } - XXX: base & {in: "foo"} // failure is here + filled: base & {in: "foo"} // failure is here } - z: F.XXX.out + z: F.filled.out } issue3801: nonRooted: reduced: { #Output: output: { @@ -162,7 +162,7 @@ Disjuncts: 373 // ./nested.cue:4:8 } } - XXX: (struct){ + filled: (struct){ in: (string){ "foo" } let X#2 = (string){ "foo" } out: (string){ "foo" } @@ -479,7 +479,7 @@ diff old new // ./nested.cue:4:8 } } - XXX: (struct){ + filled: (struct){ in: (string){ "foo" } let X#2 = (string){ "foo" } out: (string){ "foo" } @@ -695,11 +695,11 @@ diff old new }.a out: 〈0;let X#2〉 } - XXX: (〈0;base〉 & { + filled: (〈0;base〉 & { in: "foo" }) } - z: 〈0;let F#1〉.XXX.out + z: 〈0;let F#1〉.filled.out } } } diff --git a/encoding/jsonschema/testdata/txtar/issue3351.txtar b/encoding/jsonschema/testdata/txtar/issue3351.txtar index 2131eb2ca..4d7345a25 100644 --- a/encoding/jsonschema/testdata/txtar/issue3351.txtar +++ b/encoding/jsonschema/testdata/txtar/issue3351.txtar @@ -2,7 +2,7 @@ -- schema.json -- { "$schema": "https://json-schema.org/draft/2019-09/schema", - "$id": "https://www.sourcemeta.com/schemas/vendor/json-eXXXX@1.json", + "$id": "https://www.sourcemeta.com/schemas/vendor/json-eNNNN@1.json", "$comment": "https://json-e.js.org", "$defs": { "jsone-value": { @@ -68,7 +68,7 @@ @jsonschema(schema="https://json-schema.org/draft/2019-09/schema") _schema _schema: { - @jsonschema(id="https://www.sourcemeta.com/schemas/vendor/json-eXXXX@1.json") + @jsonschema(id="https://www.sourcemeta.com/schemas/vendor/json-eNNNN@1.json") $else?: #."jsone-value" $let?: [string]: null | bool | number | string | [...] | { [string]: _schema diff --git a/internal/astinternal/debug_test.go b/internal/astinternal/debug_test.go index e980ab5ab..ecad7cd70 100644 --- a/internal/astinternal/debug_test.go +++ b/internal/astinternal/debug_test.go @@ -60,9 +60,9 @@ func TestDebugPrint(t *testing.T) { AllPositions: allPositions, }) if includePointers { - // Pointer values change between runs. Replace with a constant - // string so that we can test stable output. - full = ptrPat.ReplaceAll(full, []byte("XXXX")) + // Pointer values change between runs. + // Replace with a constant string so that we can test stable output. + full = ptrPat.ReplaceAll(full, []byte("TESTPTR")) } t.Writer(file.Name).Write(full) diff --git a/internal/astinternal/testdata/debugprint/withpointer.txtar b/internal/astinternal/testdata/debugprint/withpointer.txtar index 044f349c4..febd6abeb 100644 --- a/internal/astinternal/testdata/debugprint/withpointer.txtar +++ b/internal/astinternal/testdata/debugprint/withpointer.txtar @@ -5,35 +5,35 @@ package p a: b b: 3 -- out/debugprint/file.cue -- -*ast.File@XXXX{ +*ast.File@TESTPTR{ Filename: "file.cue" Decls: []ast.Decl{ - *ast.Package@XXXX{ + *ast.Package@TESTPTR{ PackagePos: token.Pos("file.cue:1:1", nospace) - Name: *ast.Ident@XXXX{ + Name: *ast.Ident@TESTPTR{ NamePos: token.Pos("file.cue:1:9", blank) Name: "p" } } - *ast.Field@XXXX{ - Label: *ast.Ident@XXXX{ + *ast.Field@TESTPTR{ + Label: *ast.Ident@TESTPTR{ NamePos: token.Pos("file.cue:3:1", section) Name: "a" } TokenPos: token.Pos("file.cue:3:2", nospace) - Value: *ast.Ident@XXXX{ + Value: *ast.Ident@TESTPTR{ NamePos: token.Pos("file.cue:3:4", blank) Name: "b" - Node: @XXXX (ast.BasicLit) + Node: @TESTPTR (ast.BasicLit) } } - *ast.Field@XXXX{ - Label: *ast.Ident@XXXX{ + *ast.Field@TESTPTR{ + Label: *ast.Ident@TESTPTR{ NamePos: token.Pos("file.cue:4:1", newline) Name: "b" } TokenPos: token.Pos("file.cue:4:2", nospace) - Value: *ast.BasicLit@XXXX{ + Value: *ast.BasicLit@TESTPTR{ ValuePos: token.Pos("file.cue:4:4", blank) Kind: token.Token("INT") Value: "3" diff --git a/internal/cueversion/version.go b/internal/cueversion/version.go index 28b1f675e..ca37c6a64 100644 --- a/internal/cueversion/version.go +++ b/internal/cueversion/version.go @@ -64,7 +64,7 @@ func findCUEModule(bi *debug.BuildInfo) *debug.Module { // // Example: // -// Cue/v0.8.0 (cuelang.org/go; vxXXX) Go/go1.22.0 (linux/amd64) +// Cue/v0.16.0 (cuelang.org/go; lang v0.16.0) Go/go1.26.0 (linux/amd64) func UserAgent(clientType string) string { if clientType == "" { clientType = "cuelang.org/go"