cuelang.org/go@v0.13.0/tools/trim/testdata/do_not_remove_field.txtar (about)

     1  Because of the embedding, trimV3 does not simplify this. If line 1 was
     2  rewritten without the embedding, then the simplification can
     3  occur. See do_not_remove_field_2 for that.
     4  
     5  -- in.cue --
     6  {[_]: x: "hello"}
     7  a: x: "hello"
     8  -- out/trim-v3 --
     9  == in.cue
    10  {[_]: x: "hello"}
    11  a: x: "hello"
    12  -- diff/-out/trim-v3<==>+out/trim --
    13  diff old new
    14  --- old
    15  +++ new
    16  @@ -1,3 +1,3 @@
    17   == in.cue
    18   {[_]: x: "hello"}
    19  -a: {}
    20  +a: x: "hello"
    21  -- out/trim-v3-noshare --
    22  == in.cue
    23  {[_]: x: "hello"}
    24  a: x: "hello"
    25  -- diff/-out/trim-v3-noshare<==>+out/trim --
    26  diff old new
    27  --- old
    28  +++ new
    29  @@ -1,3 +1,3 @@
    30   == in.cue
    31   {[_]: x: "hello"}
    32  -a: {}
    33  +a: x: "hello"
    34  -- out/trim --
    35  == in.cue
    36  {[_]: x: "hello"}
    37  a: {}