this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

cue: remove testdata/gen.go

It was introduced by https://cue-review.googlesource.com/c/cue/+/5821
back in 2020 when Marcel transitioned from table-driven tests in Go
test files to one txtar file per test inside testdata.

That transition finished a long time ago, and we have been expanding
the testdata txtar files manually to add test cases since.
For example, https://cuelang.org/cl/1172010 expanded the CUE input
to one of these generated txtar files, and we don't want to lose those
by re-generating the files.

Moreover, since `go generate ./...` skips over testdata directories
and this gen.go program had its own //go:generate directive,
we hadn't run this code generator for at least two or three years.
Case in point, it doesn't even work at this point.

As agreed with Marcel, it's well past the time to remove this generator.
Remove the "DO NOT EDIT" warnings too, as they no longer apply:

sed -i '/DO NOT EDIT; generated by go run testdata/,+1d' cue/testdata/*/*.txtar

Signed-off-by: Daniel Martí <mvdan@mvdan.cc>
Change-Id: I6673629e57da7608029c2c4a6caef24b259be926
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1201347
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>
Reviewed-by: Roger Peppe <rogpeppe@gmail.com>

-645
-2
cue/testdata/basicrewrite/000_errors.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 #name: errors 4 2 #evalPartial 5 3 -- in.cue --
-2
cue/testdata/basicrewrite/001_regexp.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 #name: regexp 4 2 #evalPartial 5 3 -- in.cue --
-2
cue/testdata/basicrewrite/002_arithmetic.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 #name: arithmetic 4 2 #evalPartial 5 3 -- in.cue --
-2
cue/testdata/basicrewrite/003_integer-specific_arithmetic.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 #name: integer-specific arithmetic 4 2 #evalPartial 5 3 -- in.cue --
-2
cue/testdata/basicrewrite/004_booleans.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 #name: booleans 4 2 #evalPartial 5 3 -- in.cue --
-2
cue/testdata/basicrewrite/005_boolean_arithmetic.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 #name: boolean arithmetic 4 2 #evalPartial 5 3 -- in.cue --
-2
cue/testdata/basicrewrite/006_basic_type.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 #name: basic type 4 2 #evalPartial 5 3 -- in.cue --
-2
cue/testdata/basicrewrite/007_strings_and_bytes.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 #name: strings and bytes 4 2 #evalPartial 5 3 -- in.cue --
-2
cue/testdata/basicrewrite/008_escaping.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 #name: escaping 4 2 #evalPartial 5 3 -- in.cue --
-2
cue/testdata/basicrewrite/009_reference.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 #name: reference 4 2 #evalPartial 5 3 -- in.cue --
-2
cue/testdata/basicrewrite/010_lists.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 #name: lists 4 2 #evalPartial 5 3 -- in.cue --
-2
cue/testdata/basicrewrite/012_selecting.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 #name: selecting 4 2 #evalPartial 5 3 -- in.cue --
-2
cue/testdata/basicrewrite/013_obj_unify.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 #name: obj unify 4 2 #evalPartial 5 3 -- in.cue --
-2
cue/testdata/basicrewrite/014_disjunctions.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - 3 1 #name: disjunctions 4 2 #evalPartial 5 3 -- in.cue --
-2
cue/testdata/basicrewrite/015_types.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 #name: types 4 2 #evalPartial 5 3 -- in.cue --
-2
cue/testdata/basicrewrite/016_comparison.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 #name: comparison 4 2 #evalPartial 5 3 -- in.cue --
-2
cue/testdata/basicrewrite/017_null.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 #name: null 4 2 #evalPartial 5 3 -- in.cue --
-2
cue/testdata/basicrewrite/018_self-reference_cycles.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 #name: self-reference cycles 4 2 #evalPartial 5 3 -- in.cue --
-2
cue/testdata/basicrewrite/019_resolved_self-reference_cycles.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 #name: resolved self-reference cycles 4 2 #evalPartial 5 3 -- in.cue --
-2
cue/testdata/basicrewrite/020_resolved_self-reference_cycles__Issue_19.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 #name: resolved self-reference cycles: Issue 19 4 2 #evalPartial 5 3 -- in.cue --
-2
cue/testdata/builtins/056_issue314.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 #name: issue314 4 2 #evalFull 5 3 -- in.cue --
-2
cue/testdata/choosedefault/000_pick_first.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 #name: pick first 4 2 #bug: true 5 3 #evalFull
-2
cue/testdata/choosedefault/001_simple_disambiguation_conflict.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 #name: simple disambiguation conflict 4 2 #evalFull 5 3 -- in.cue --
-2
cue/testdata/choosedefault/002_associativity_of_defaults.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 #name: associativity of defaults 4 2 #evalFull 5 3 -- in.cue --
-2
cue/testdata/comprehensions/015_list_comprehension.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 #name: list comprehension 4 2 #evalFull 5 3 -- in.cue --
-2
cue/testdata/comprehensions/045_comprehension_and_skipped_field.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 #name: comprehension and skipped field 4 2 #bug: true 5 3 #evalFull
-2
cue/testdata/cycle/015_reference_across_tuples_and_back.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 #name: reference across tuples and back 4 2 #evalPartial 5 3 -- in.cue --
-2
cue/testdata/cycle/021_delayed_constraint_failure.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 #name: delayed constraint failure 4 2 #evalPartial 5 3 -- in.cue --
-2
cue/testdata/cycle/023_reentrance.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 #name: reentrance 4 2 #evalFull 5 3 -- in.cue --
-2
cue/testdata/cycle/025_cannot_resolve_references_that_would_be_ambiguous.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 #name: cannot resolve references that would be ambiguous 4 2 #evalFull 5 3 -- in.cue --
-2
cue/testdata/cycle/049_self-reference_cycles_conflicts_with_strings.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 #name: self-reference cycles conflicts with strings 4 2 #evalPartial 5 3 -- in.cue --
-2
cue/testdata/cycle/050_resolved_self-reference_cycles_with_disjunctions.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 #name: resolved self-reference cycles with disjunctions 4 2 #evalPartial 5 3 -- in.cue --
-2
cue/testdata/cycle/052_resolved_self-reference_cycles_with_disjunction_with_defaults.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 #name: resolved self-reference cycles with disjunction with defaults 4 2 #evalPartial 5 3 -- in.cue --
-2
cue/testdata/definitions/026_combined_definitions.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 #name: combined definitions 4 2 #evalPartial 5 3 -- in.cue --
-2
cue/testdata/definitions/028_recursive_closing_starting_at_non-definition.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 #name: recursive closing starting at non-definition 4 2 #evalPartial 5 3 -- in.cue --
-2
cue/testdata/definitions/032_definitions_with_embedding.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 #name: definitions with embedding 4 2 #evalPartial 5 3 -- in.cue --
-2
cue/testdata/definitions/033_Issue_#153.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 #name: Issue #153 4 2 #evalFull 5 3 -- in.cue --
-2
cue/testdata/definitions/036_closing_with_failed_optional.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 #name: closing with failed optional 4 2 #evalPartial 5 3 -- in.cue --
-2
cue/testdata/definitions/036_optionals_in_open_structs.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 #name: optionals in open structs 4 2 #evalFull 5 3 -- in.cue --
-2
cue/testdata/definitions/037_closing_with_comprehensions.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 #name: closing with comprehensions 4 2 #evalPartial 5 3 -- in.cue --
-2
cue/testdata/definitions/037_conjunction_of_optional_sets.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 #name: conjunction of optional sets 4 2 #evalFull 5 3 -- in.cue --
-2
cue/testdata/definitions/038_continue_recursive_closing_for_optionals.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 #name: continue recursive closing for optionals 4 2 #evalFull 5 3 -- in.cue --
-2
cue/testdata/definitions/039_augment_closed_optionals.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 #name: augment closed optionals 4 2 #evalFull 5 3 -- in.cue --
-2
cue/testdata/disjunctions/019_ips.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 #name: ips 4 2 #evalFull 5 3 -- in.cue --
-2
cue/testdata/export/000.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 -- in.cue -- 4 2 "hello" 5 3 -- out/def --
-2
cue/testdata/export/001.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 -- in.cue -- 4 2 'hello' 5 3 -- out/def --
-2
cue/testdata/export/002.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 -- in.cue -- 4 2 'hello\nworld' 5 3 -- out/def --
-2
cue/testdata/export/003.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 -- in.cue -- 4 2 "hello\nworld" 5 3 -- out/def --
-2
cue/testdata/export/004.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 -- in.cue -- 4 2 { 5 3 $type: 3
-2
cue/testdata/export/005.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 -- in.cue -- 4 2 {a: 1, b: a + 2, c: null, d: true, e: _, f: string} 5 3 -- out/def --
-2
cue/testdata/export/006.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 -- in.cue -- 4 2 {a: {b: 2.0, s: "abc"}, b: a.b, c: a.c, d: a["d"], e: a.t[2:3]} 5 3 -- out/def --
-2
cue/testdata/export/008.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 -- in.cue -- 4 2 {a: [ 3 & 4]} 5 3 -- out/def --
-2
cue/testdata/export/009.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 -- in.cue -- 4 2 import "list" 5 3
-2
cue/testdata/export/010.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 raw: true 4 2 -- in.cue -- 5 3 import "list"
-2
cue/testdata/export/011.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 raw: true 4 2 -- in.cue -- 5 3 {a: {b: []}, c: a.b, d: a["b"]}
-2
cue/testdata/export/012.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 raw: true 4 2 -- in.cue -- 5 3 {a: *"foo" | *"bar" | *string | int, b: a[2:3]}
-2
cue/testdata/export/013.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 -- in.cue -- 4 2 { 5 3 a: >=0 & <=10 & !=1
-2
cue/testdata/export/014.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 raw: true 4 2 -- in.cue -- 5 3 {
-2
cue/testdata/export/015.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 raw: true 4 2 eval: true 5 3 -- in.cue --
-2
cue/testdata/export/016.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 raw: true 4 2 eval: true 5 3 -- in.cue --
-2
cue/testdata/export/017.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 raw: true 4 2 -- in.cue -- 5 3 {a: [1, 2], b: {for k, v in a if v > 1 {"\(k)": v}}}
-2
cue/testdata/export/018.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 raw: true 4 2 -- in.cue -- 5 3 {a: [1, 2], b: [for k, v in a {v}]}
-2
cue/testdata/export/019.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 raw: true 4 2 -- in.cue -- 5 3 {a: >=0 & <=10, b: "Count: \(a) times"}
-2
cue/testdata/export/020.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 raw: true 4 2 -- in.cue -- 5 3 {a: "", b: len(a)}
-2
cue/testdata/export/021.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 raw: true 4 2 eval: true 5 3 -- in.cue --
-2
cue/testdata/export/022.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 raw: true 4 2 eval: true 5 3 noOpt: true
-2
cue/testdata/export/023.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 raw: true 4 2 -- in.cue -- 5 3 {
-2
cue/testdata/export/024.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 raw: true 4 2 eval: true 5 3 noOpt: true
-2
cue/testdata/export/025.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 raw: true 4 2 eval: true 5 3 -- in.cue --
-2
cue/testdata/export/026.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 raw: true 4 2 -- in.cue -- 5 3 {
-2
cue/testdata/export/027.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 4 2 TODO: Should #Bar result in string or #Foo | string? 5 3
-2
cue/testdata/export/028.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 raw: true 4 2 eval: true 5 3 -- in.cue --
-2
cue/testdata/export/029.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 raw: true 4 2 eval: true 5 3 noOpt: true
-2
cue/testdata/export/030.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 raw: true 4 2 eval: true 5 3 -- in.cue --
-2
cue/testdata/export/031.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 raw: true 4 2 eval: true 5 3 -- in.cue --
-2
cue/testdata/export/032.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 -- in.cue -- 4 2 { 5 3 [string]: _
-2
cue/testdata/fulleval/001_conflicts_in_optional_fields_are_okay_.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 #name: conflicts in optional fields are okay 4 2 #evalFull 5 3 -- in.cue --
-2
cue/testdata/fulleval/002_resolve_all_disjunctions.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 #name: resolve all disjunctions 4 2 #evalFull 5 3 -- in.cue --
-2
cue/testdata/fulleval/003_field_templates.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 #name: field templates 4 2 #evalFull 5 3 -- in.cue --
-2
cue/testdata/fulleval/004_field_comprehension.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 #name: field comprehension 4 2 #evalFull 5 3 -- in.cue --
-2
cue/testdata/fulleval/005_conditional_field.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 #name: conditional field 4 2 #evalFull 5 3 -- in.cue --
-2
cue/testdata/fulleval/006_referencing_field_in_field_comprehension.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 #name: referencing field in field comprehension 4 2 #evalFull 5 3 -- in.cue --
-2
cue/testdata/fulleval/007_different_labels_for_templates.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 #name: different labels for templates 4 2 #evalFull 5 3 -- in.cue --
-2
cue/testdata/fulleval/008_nested_templates_in_one_field.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 #name: nested templates in one field 4 2 #evalFull 5 3 -- in.cue --
-2
cue/testdata/fulleval/009_template_unification_within_one_struct.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 #name: template unification within one struct 4 2 #evalFull 5 3 -- in.cue --
-2
cue/testdata/fulleval/010_field_comprehensions_with_multiple_keys.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 #name: field comprehensions with multiple keys 4 2 #evalFull 5 3 -- in.cue --
-2
cue/testdata/fulleval/011_field_comprehensions_with_templates.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 #name: field comprehensions with templates 4 2 #evalFull 5 3 -- in.cue --
-2
cue/testdata/fulleval/012_disjunctions_of_lists.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 #name: disjunctions of lists 4 2 #evalFull 5 3 -- in.cue --
-2
cue/testdata/fulleval/014_default_disambiguation_and_elimination.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 #name: default disambiguation and elimination 4 2 #evalFull 5 3 -- in.cue --
-2
cue/testdata/fulleval/016_struct_comprehension_with_template.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 #name: struct comprehension with template 4 2 #evalFull 5 3 -- in.cue --
-2
cue/testdata/fulleval/017_resolutions_in_struct_comprehension_keys.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 #name: resolutions in struct comprehension keys 4 2 #evalFull 5 3 -- in.cue --
-2
cue/testdata/fulleval/018_recursive_evaluation_within_list.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 #name: recursive evaluation within list 4 2 #evalFull 5 3 -- in.cue --
-2
cue/testdata/fulleval/020_complex_interaction_of_groundness.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 #name: complex interaction of groundness 4 2 #evalFull 5 3 -- in.cue --
-2
cue/testdata/fulleval/021_complex_groundness_2.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 #name: complex groundness 2 4 2 #evalFull 5 3 -- in.cue --
-2
cue/testdata/fulleval/022_references_from_template_to_concrete.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 #name: references from template to concrete 4 2 #evalFull 5 3 -- in.cue --
-2
cue/testdata/fulleval/024_Issue_#23.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 #name: Issue #23 4 2 #evalFull 5 3 -- in.cue --
-2
cue/testdata/fulleval/026_dont_convert_incomplete_errors_to_non-incomplete.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 #name: dont convert incomplete errors to non-incomplete 4 2 #evalFull 5 3 -- in.cue --
-2
cue/testdata/fulleval/027_len_of_incomplete_types.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 #name: len of incomplete types 4 2 #evalFull 5 3 -- in.cue --
-2
cue/testdata/fulleval/028_slice_rewrite_bug.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 #name: slice rewrite bug 4 2 #evalFull 5 3 -- in.cue --
-2
cue/testdata/fulleval/029_Issue_#94.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 #name: Issue #94 4 2 #evalFull 5 3 -- in.cue --
-2
cue/testdata/fulleval/030_retain_references_with_interleaved_embedding.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 #name: retain references with interleaved embedding 4 2 #evalFull 5 3 -- in.cue --
-2
cue/testdata/fulleval/031_comparison_against_bottom.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 #name: comparison against bottom 4 2 #evalFull 5 3 -- in.cue --
-2
cue/testdata/fulleval/032_or_builtin_should_not_fail_on_non-concrete_empty_list.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 #name: or builtin should not fail on non-concrete empty list 4 2 #evalFull 5 3 -- in.cue --
-2
cue/testdata/fulleval/034_label_and_field_aliases.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 #name: label and field aliases 4 2 #evalFull 5 3 -- in.cue --
-2
cue/testdata/fulleval/035_optionals_with_label_filters.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 #name: optionals with label filters 4 2 #evalFull 5 3 -- in.cue --
-2
cue/testdata/fulleval/040.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 #evalFull 4 2 -- in.cue -- 5 3 #Task: {
-2
cue/testdata/fulleval/041.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 #evalFull 4 2 -- in.cue -- 5 3 t: {
-2
cue/testdata/fulleval/042_cross-dependent_comprehension.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 #name: cross-dependent comprehension 4 2 #evalFull 5 3 -- in.cue --
-2
cue/testdata/fulleval/043_optional_expanded_before_lookup.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 #name: optional expanded before lookup 4 2 #evalFull 5 3 -- in.cue --
-2
cue/testdata/fulleval/044_Issue_#178.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 #name: Issue #178 4 2 #evalFull 5 3 -- in.cue --
-2
cue/testdata/fulleval/046_non-structural_direct_cycles.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 #name: non-structural direct cycles 4 2 #evalFull 5 3 -- in.cue --
-2
cue/testdata/fulleval/047_dont_bind_to_string_labels.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 #name: dont bind to string labels 4 2 #evalFull 5 3 -- in.cue --
-2
cue/testdata/fulleval/048_dont_pass_incomplete_values_to_builtins.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 #name: dont pass incomplete values to builtins 4 2 #evalFull 5 3 -- in.cue --
-2
cue/testdata/fulleval/049_alias_reuse_in_nested_scope.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 #name: alias reuse in nested scope 4 2 #evalFull 5 3 -- in.cue --
-2
cue/testdata/fulleval/050_json_Marshaling_detects_incomplete.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 #name: json Marshaling detects incomplete 4 2 #evalFull 5 3 -- in.cue --
-2
cue/testdata/fulleval/051_detectIncompleteYAML.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 #name: detectIncompleteYAML 4 2 #evalFull 5 3 -- in.cue --
-2
cue/testdata/fulleval/052_detectIncompleteJSON.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 #name: detectIncompleteJSON 4 2 #evalFull 5 3 -- in.cue --
-2
cue/testdata/fulleval/053_issue312.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 #name: issue312 4 2 #evalFull 5 3 -- in.cue --
-2
cue/testdata/fulleval/055_issue318.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 #name: issue318 4 2 #evalFull 5 3 -- in.cue --
-325
cue/testdata/gen.go
··· 1 - // Copyright 2020 CUE Authors 2 - // 3 - // Licensed under the Apache License, Version 2.0 (the "License"); 4 - // you may not use this file except in compliance with the License. 5 - // You may obtain a copy of the License at 6 - // 7 - // http://www.apache.org/licenses/LICENSE-2.0 8 - // 9 - // Unless required by applicable law or agreed to in writing, software 10 - // distributed under the License is distributed on an "AS IS" BASIS, 11 - // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 - // See the License for the specific language governing permissions and 13 - // limitations under the License. 14 - 15 - package main 16 - 17 - import ( 18 - "bytes" 19 - "flag" 20 - "fmt" 21 - "go/ast" 22 - "go/constant" 23 - "go/format" 24 - "log" 25 - "os" 26 - "path/filepath" 27 - "strings" 28 - 29 - "golang.org/x/tools/go/packages" 30 - "golang.org/x/tools/txtar" 31 - 32 - "cuelang.org/go/cue" 33 - cueast "cuelang.org/go/cue/ast" 34 - cueformat "cuelang.org/go/cue/format" 35 - "cuelang.org/go/cue/parser" 36 - "cuelang.org/go/encoding/yaml" 37 - "cuelang.org/go/internal" 38 - internaljson "cuelang.org/go/internal/encoding/json" 39 - "cuelang.org/go/tools/fix" 40 - ) 41 - 42 - //go:generate go run gen.go 43 - //go:generate go test ../internal/compile --update 44 - //go:generate go test ../internal/eval --update 45 - 46 - func main() { 47 - flag.Parse() 48 - log.SetFlags(log.Lshortfile) 49 - 50 - cfg := &packages.Config{ 51 - Mode: packages.NeedSyntax | packages.NeedTypes | packages.NeedTypesInfo, 52 - 53 - Tests: true, 54 - } 55 - a, err := packages.Load(cfg, "..") 56 - if err != nil { 57 - log.Fatal(err) 58 - } 59 - 60 - for _, p := range a { 61 - e := extractor{p: p} 62 - e.extractFromPackage() 63 - } 64 - } 65 - 66 - type extractor struct { 67 - p *packages.Package 68 - 69 - dir string 70 - name string 71 - count int 72 - a *txtar.Archive 73 - header *bytes.Buffer 74 - 75 - tags []string 76 - } 77 - 78 - func (e *extractor) fatalf(format string, args ...interface{}) { 79 - prefix := fmt.Sprintf("%s/%d[%s]: ", e.dir, e.count, e.name) 80 - log.Fatalf(prefix+format, args...) 81 - } 82 - 83 - func (e *extractor) warnf(format string, args ...interface{}) { 84 - prefix := fmt.Sprintf("%s/%d[%s]: ", e.dir, e.count, e.name) 85 - log.Printf(prefix+format, args...) 86 - } 87 - 88 - func (e *extractor) extractFromPackage() { 89 - for _, file := range e.p.Syntax { 90 - for _, d := range file.Decls { 91 - e.processTestFunc(d) 92 - } 93 - } 94 - } 95 - 96 - func (e *extractor) processTestFunc(d ast.Decl) { 97 - p := e.p 98 - f, ok := d.(*ast.FuncDecl) 99 - if !ok { 100 - return 101 - } 102 - 103 - if !strings.HasPrefix(f.Name.Name, "Test") { 104 - return 105 - } 106 - e.dir = strings.ToLower(f.Name.Name[len("Test"):]) 107 - e.count = 0 108 - e.tags = nil 109 - if e.dir == "x" { // TestX 110 - return 111 - } 112 - 113 - if len(f.Type.Params.List) != 1 { 114 - return 115 - } 116 - 117 - if p.TypesInfo.TypeOf(f.Type.Params.List[0].Type).String() != "*testing.T" { 118 - return 119 - } 120 - e.extractFromTestFunc(f) 121 - } 122 - 123 - func (e *extractor) isConstant(x ast.Expr) bool { 124 - return constant.Val(e.p.TypesInfo.Types[x].Value) != nil 125 - } 126 - 127 - func (e *extractor) stringConst(x ast.Expr) string { 128 - v := e.p.TypesInfo.Types[x].Value 129 - if v.Kind() != constant.String { 130 - return v.String() 131 - } 132 - return constant.StringVal(v) 133 - } 134 - 135 - func (e *extractor) boolConst(x ast.Expr) bool { 136 - v := e.p.TypesInfo.Types[x].Value 137 - return constant.BoolVal(v) 138 - } 139 - 140 - func (e *extractor) exprString(x ast.Expr) string { 141 - w := &bytes.Buffer{} 142 - _ = format.Node(w, e.p.Fset, x) 143 - return w.String() 144 - } 145 - 146 - func (e *extractor) extractFromTestFunc(f *ast.FuncDecl) { 147 - defer func() { 148 - if err := recover(); err != nil { 149 - e.warnf("PANIC: %v", err) 150 - panic(err) 151 - } 152 - }() 153 - // Extract meta data. 154 - for _, stmt := range f.Body.List { 155 - es, ok := stmt.(*ast.ExprStmt) 156 - if !ok { 157 - continue 158 - } 159 - if call, ok := es.X.(*ast.CallExpr); ok { 160 - if e.exprString(call.Fun) != "rewriteHelper" { 161 - continue 162 - } 163 - e.tags = append(e.tags, e.exprString(call.Args[2])) 164 - } 165 - } 166 - 167 - // Extract test data. 168 - for _, stmt := range f.Body.List { 169 - ast.Inspect(stmt, func(n ast.Node) bool { 170 - switch x := n.(type) { 171 - case *ast.CompositeLit: 172 - t := e.p.TypesInfo.TypeOf(x.Type) 173 - 174 - switch t.String() { 175 - case "[]cuelang.org/go/cue.testCase", 176 - "[]cuelang.org/go/cue.exportTest": 177 - // TODO: "[]cuelang.org/go/cue.subsumeTest", 178 - default: 179 - return false 180 - } 181 - 182 - for _, elt := range x.Elts { 183 - if kv, ok := elt.(*ast.KeyValueExpr); ok { 184 - elt = kv.Value 185 - } 186 - e.extractTest(elt.(*ast.CompositeLit)) 187 - e.count++ 188 - } 189 - 190 - return false 191 - } 192 - return true 193 - }) 194 - } 195 - } 196 - 197 - func (e *extractor) extractTest(x *ast.CompositeLit) { 198 - e.name = "" 199 - e.header = &bytes.Buffer{} 200 - e.a = &txtar.Archive{} 201 - 202 - e.header.WriteString(`# DO NOT EDIT; generated by go run testdata/gen.go 203 - # 204 - `) 205 - 206 - for _, elmt := range x.Elts { 207 - f, ok := elmt.(*ast.KeyValueExpr) 208 - if !ok { 209 - e.fatalf("Invalid slice element: %T", elmt) 210 - continue 211 - } 212 - 213 - switch key := e.exprString(f.Key); key { 214 - case "name", "desc": 215 - e.name = e.stringConst(f.Value) 216 - fmt.Fprintf(e.header, "#name: %v\n", e.stringConst(f.Value)) 217 - 218 - case "in": 219 - src := []byte(e.stringConst(f.Value)) 220 - src, err := cueformat.Source(src) 221 - 222 - if f, err := parser.ParseFile("in.cue", src, parser.ParseComments); err == nil { 223 - f = fix.File(f) 224 - b, err := cueformat.Node(f) 225 - if err == nil { 226 - src = b 227 - } 228 - } 229 - 230 - if err != nil { 231 - fmt.Fprintln(e.header, "#skip") 232 - e.warnf("Skipped: %v", err) 233 - continue 234 - } 235 - e.a.Files = append(e.a.Files, txtar.File{ 236 - Name: "in.cue", 237 - Data: src, 238 - }) 239 - 240 - e.populate(src) 241 - 242 - case "out": 243 - if !e.isConstant(f.Value) { 244 - e.warnf("Could not determine value for 'out' field") 245 - continue 246 - } 247 - e.a.Files = append(e.a.Files, txtar.File{ 248 - Name: "out/legacy-debug", 249 - Data: []byte(e.stringConst(f.Value)), 250 - }) 251 - default: 252 - fmt.Fprintf(e.header, "%s: %v\n", key, e.exprString(f.Value)) 253 - } 254 - } 255 - 256 - for _, t := range e.tags { 257 - fmt.Fprintf(e.header, "#%s\n", t) 258 - } 259 - 260 - e.a.Comment = e.header.Bytes() 261 - 262 - _ = os.Mkdir(e.dir, 0777) 263 - 264 - name := fmt.Sprintf("%03d", e.count) 265 - if e.name != "" { 266 - name += "_" + e.name 267 - } 268 - name = strings.ReplaceAll(name, " ", "_") 269 - name = strings.ReplaceAll(name, ":", "_") 270 - filename := filepath.Join(e.dir, name+".txtar") 271 - err := os.WriteFile(filename, txtar.Format(e.a), 0666) 272 - if err != nil { 273 - e.fatalf("Could not write file: %v", err) 274 - } 275 - } 276 - 277 - // populate sets the golden tests based on the old compiler, evaluator, 278 - // and exporter. 279 - func (e *extractor) populate(src []byte) { 280 - r := cue.Runtime{} 281 - inst, err := r.Compile("in.cue", src) 282 - if err != nil { 283 - e.fatalf("Failed to parse: %v", err) 284 - } 285 - 286 - v := inst.Value() 287 - 288 - e.addFile(e.a, "out/def", v.Syntax( 289 - cue.Docs(true), 290 - cue.Attributes(true), 291 - cue.Optional(true), 292 - cue.Definitions(true))) 293 - 294 - if v.Validate(cue.Concrete(true)) == nil { 295 - e.addFile(e.a, "out/export", v.Syntax( 296 - cue.Concrete(true), 297 - cue.Final(), 298 - cue.Docs(true), 299 - cue.Attributes(true))) 300 - 301 - encYAML, err := yaml.Encode(v) 302 - if err != nil { 303 - fmt.Fprintln(e.header, "#bug: true") 304 - e.warnf("Could not encode as YAML: %v", err) 305 - } 306 - e.a.Files = append(e.a.Files, 307 - txtar.File{Name: "out/yaml", Data: encYAML}) 308 - 309 - encJSON, err := internaljson.Marshal(v) 310 - if err != nil { 311 - fmt.Fprintln(e.header, "#bug: true") 312 - e.warnf("Could not encode as JSON: %v", err) 313 - } 314 - e.a.Files = append(e.a.Files, 315 - txtar.File{Name: "out/json", Data: encJSON}) 316 - } 317 - } 318 - 319 - func (e *extractor) addFile(a *txtar.Archive, name string, n cueast.Node) { 320 - b, err := cueformat.Node(internal.ToFile(n)) 321 - if err != nil { 322 - e.fatalf("Failed to format %s: %v\n", name, err) 323 - } 324 - a.Files = append(a.Files, txtar.File{Name: name, Data: b}) 325 - }
-2
cue/testdata/interpolation/041_interpolation.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 #name: interpolation 4 2 #evalPartial 5 3 -- in.cue --
-2
cue/testdata/interpolation/042_multiline_interpolation.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 #name: multiline interpolation 4 2 #evalPartial 5 3 -- in.cue --
-2
cue/testdata/lists/019_list_types.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 #name: list types 4 2 #evalPartial 5 3 -- in.cue --
-2
cue/testdata/lists/021_list_equality.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 #name: list equality 4 2 #evalPartial 5 3 -- in.cue --
-2
cue/testdata/resolve/000_convert___to_top.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 #name: convert _ to top 4 2 #evalPartial 5 3 -- in.cue --
-2
cue/testdata/resolve/001.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 #evalPartial 4 2 -- in.cue -- 5 3 a: b.c.d
-2
cue/testdata/resolve/002.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 #skip 4 2 #evalPartial 5 3 -- out/legacy-debug --
-2
cue/testdata/resolve/004.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 #evalPartial 4 2 -- in.cue -- 5 3 a: _
-2
cue/testdata/resolve/005_JSON.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 #name: JSON 4 2 #evalPartial 5 3 -- in.cue --
-2
cue/testdata/resolve/006_arithmetic.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 #name: arithmetic 4 2 #evalPartial 5 3 -- in.cue --
-2
cue/testdata/resolve/007_inequality.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 #name: inequality 4 2 #evalPartial 5 3 -- in.cue --
-2
cue/testdata/resolve/008_attributes.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 #name: attributes 4 2 #evalPartial 5 3 -- in.cue --
-2
cue/testdata/resolve/009_optional_field_unification.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 #name: optional field unification 4 2 #evalPartial 5 3 -- in.cue --
-2
cue/testdata/resolve/010_optional_field_resolves_to_incomplete.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 #name: optional field resolves to incomplete 4 2 #evalPartial 5 3 -- in.cue --
-2
cue/testdata/resolve/011_bounds.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 #name: bounds 4 2 #evalPartial 5 3 -- in.cue --
-2
cue/testdata/resolve/012_bound_conversions.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 #name: bound conversions 4 2 #evalPartial 5 3 -- in.cue --
-2
cue/testdata/resolve/013_custom_validators.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 #name: custom validators 4 2 #evalPartial 5 3 -- in.cue --
-2
cue/testdata/resolve/014_null_coalescing.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 #name: null coalescing 4 2 #evalPartial 5 3 -- in.cue --
-2
cue/testdata/resolve/016_index.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 #name: index 4 2 #evalPartial 5 3 -- in.cue --
-2
cue/testdata/resolve/017_disjunctions_of_lists.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 #name: disjunctions of lists 4 2 #evalPartial 5 3 -- in.cue --
-2
cue/testdata/resolve/018_slice.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 #name: slice 4 2 #evalPartial 5 3 -- in.cue --
-2
cue/testdata/resolve/022_list_unification.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 #name: list unification 4 2 #evalPartial 5 3 -- in.cue --
-2
cue/testdata/resolve/023_correct_error_messages.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 #name: correct error messages 4 2 #evalPartial 5 3 -- in.cue --
-2
cue/testdata/resolve/024_structs.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 #name: structs 4 2 #evalPartial 5 3 -- in.cue --
-2
cue/testdata/resolve/025_definitions.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 #name: definitions 4 2 #evalPartial 5 3 -- in.cue --
-2
cue/testdata/resolve/027_new-style_definitions.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 #name: new-style definitions 4 2 #evalPartial 5 3 -- in.cue --
-2
cue/testdata/resolve/029_non-closed_definition_carries_over_closedness_to_enclosed_template.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 #name: non-closed definition carries over closedness to enclosed template 4 2 #evalPartial 5 3 -- in.cue --
-2
cue/testdata/resolve/030_definitions_with_disjunctions.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 #name: definitions with disjunctions 4 2 #evalPartial 5 3 -- in.cue --
-2
cue/testdata/resolve/031_definitions_with_disjunctions_recurisive.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 #name: definitions with disjunctions recurisive 4 2 #evalPartial 5 3 -- in.cue --
-2
cue/testdata/resolve/033_top-level_definition_with_struct_and_disjunction.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 #name: top-level definition with struct and disjunction 4 2 #evalPartial 5 3 -- in.cue --
-2
cue/testdata/resolve/034_closing_structs.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 #name: closing structs 4 2 #evalPartial 5 3 -- in.cue --
-2
cue/testdata/resolve/035_excluded_embedding_from_closing.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 #name: excluded embedding from closing 4 2 #evalPartial 5 3 -- in.cue --
-2
cue/testdata/resolve/038_incomplete_comprehensions.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 #name: incomplete comprehensions 4 2 #evalPartial 5 3 -- in.cue --
-2
cue/testdata/resolve/039_reference_to_root.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 #name: reference to root 4 2 #evalPartial 5 3 -- in.cue --
-2
cue/testdata/resolve/040_references_from_template_to_concrete.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 #name: references from template to concrete 4 2 #evalPartial 5 3 -- in.cue --
-2
cue/testdata/resolve/043_diamond-shaped_constraints.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 #name: diamond-shaped constraints 4 2 #evalPartial 5 3 -- in.cue --
-2
cue/testdata/resolve/044_field_templates.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 #name: field templates 4 2 #evalPartial 5 3 -- in.cue --
-2
cue/testdata/resolve/045_range_unification.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 #name: range unification 4 2 #evalPartial 5 3 -- in.cue --
-2
cue/testdata/resolve/046_predefined_ranges.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 #name: predefined ranges 4 2 #evalPartial 5 3 -- in.cue --
-2
cue/testdata/resolve/047_struct_comprehensions.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 #name: struct comprehensions 4 2 #evalPartial 5 3 -- in.cue --
-2
cue/testdata/resolve/048_builtins.txtar
··· 1 - # DO NOT EDIT; generated by go run testdata/gen.go 2 - # 3 1 #name: builtins 4 2 #evalPartial 5 3 -- in.cue --