...
1# DO NOT EDIT; generated by go run testdata/gen.go
2#
3#name: recursive closing starting at non-definition
4#evalPartial
5-- in.cue --
6z: a: {
7 #B: {
8 c: d: 1
9 c: f: 1
10 }
11}
12A: z & {a: {#B: {c: e: 2}}}
13-- out/def --
14z: {
15 a: {
16 #B: {
17 c: {
18 d: 1
19 f: 1
20 }
21 }
22 }
23}
24A: z & {
25 a: {
26 #B: {
27 c: {
28 e: 2
29 }
30 }
31 }
32}
33-- out/export --
34z: {
35 a: {}
36}
37A: {
38 a: {}
39}
40-- out/yaml --
41z:
42 a: {}
43A:
44 a: {}
45-- out/json --
46{"z":{"a":{}},"A":{"a":{}}}
47-- out/legacy-debug --
48<0>{z: <1>{a: <2>{#B: <3>C{c: <4>C{d: 1, f: 1}}}}, A: <5>{a: <6>{#B: <7>C{c: _|_(2:field "e" not allowed in closed struct)}}}}
49-- out/compile --
50--- in.cue
51{
52 z: {
53 a: {
54 #B: {
55 c: {
56 d: 1
57 }
58 c: {
59 f: 1
60 }
61 }
62 }
63 }
64 A: (ă0;ză & {
65 a: {
66 #B: {
67 c: {
68 e: 2
69 }
70 }
71 }
72 })
73}
74-- out/eval/stats --
75Leaks: 0
76Freed: 14
77Reused: 8
78Allocs: 6
79Retain: 0
80
81Unifications: 14
82Conjuncts: 21
83Disjuncts: 14
84-- out/evalalpha --
85(struct){
86 z: (struct){
87 a: (struct){
88 #B: (#struct){
89 c: (#struct){
90 d: (int){ 1 }
91 f: (int){ 1 }
92 }
93 }
94 }
95 }
96 A: (struct){
97 a: (struct){
98 #B: (#struct){
99 c: (#struct){
100 e: (int){ 2 }
101 d: (int){ 1 }
102 f: (int){ 1 }
103 }
104 }
105 }
106 }
107}
108-- diff/-out/evalalpha<==>+out/eval --
109diff old new
110--- old
111+++ new
112@@ -13,9 +13,9 @@
113 a: (struct){
114 #B: (#struct){
115 c: (#struct){
116- d: (int){ 1 }
117- f: (int){ 1 }
118 e: (int){ 2 }
119+ d: (int){ 1 }
120+ f: (int){ 1 }
121 }
122 }
123 }
124-- diff/explanation --
125reordering
126-- out/eval --
127(struct){
128 z: (struct){
129 a: (struct){
130 #B: (#struct){
131 c: (#struct){
132 d: (int){ 1 }
133 f: (int){ 1 }
134 }
135 }
136 }
137 }
138 A: (struct){
139 a: (struct){
140 #B: (#struct){
141 c: (#struct){
142 d: (int){ 1 }
143 f: (int){ 1 }
144 e: (int){ 2 }
145 }
146 }
147 }
148 }
149}
View as plain text