cuelang.org/go@v0.13.0/tools/trim/testdata/58.txtar (about) 1 Make sure we don't remove fields due to patterns, even when the 2 patterns are references. 3 4 -- a.cue -- 5 x: [string]: y 6 y: z: 6 7 x: a: z: int 8 -- out/trim-v3 -- 9 == a.cue 10 x: [string]: y 11 y: z: 6 12 x: a: _ 13 -- diff/-out/trim-v3<==>+out/trim -- 14 diff old new 15 --- old 16 +++ new 17 @@ -1,4 +1,4 @@ 18 == a.cue 19 x: [string]: y 20 y: z: 6 21 -x: a: {} 22 +x: a: _ 23 -- out/trim-v3-noshare -- 24 == a.cue 25 x: [string]: y 26 y: z: 6 27 x: a: _ 28 -- diff/-out/trim-v3-noshare<==>+out/trim -- 29 diff old new 30 --- old 31 +++ new 32 @@ -1,4 +1,4 @@ 33 == a.cue 34 x: [string]: y 35 y: z: 6 36 -x: a: {} 37 +x: a: _ 38 -- out/trim -- 39 == a.cue 40 x: [string]: y 41 y: z: 6 42 x: a: {}