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

     1  -- in.cue --
     2  foo: multipath: {
     3  	t: [string]: { x: 5 }
     4  
     5  	// Don't remove u!
     6  	t: u: { x: 5 }
     7  }
     8  
     9  group: {
    10  	for k, v in foo {
    11  		comp: "\(k)": v
    12  	}
    13  }
    14  -- out/trim-v3 --
    15  == in.cue
    16  foo: multipath: {
    17  	t: [string]: {x: 5}
    18  
    19  	// Don't remove u!
    20  	t: u: _
    21  }
    22  
    23  group: {
    24  	for k, v in foo {
    25  		comp: "\(k)": v
    26  	}
    27  }
    28  -- diff/-out/trim-v3<==>+out/trim --
    29  diff old new
    30  --- old
    31  +++ new
    32  @@ -3,7 +3,7 @@
    33   	t: [string]: {x: 5}
    34   
    35   	// Don't remove u!
    36  -	t: u: {}
    37  +	t: u: _
    38   }
    39   
    40   group: {
    41  -- out/trim-v3-noshare --
    42  == in.cue
    43  foo: multipath: {
    44  	t: [string]: {x: 5}
    45  
    46  	// Don't remove u!
    47  	t: u: _
    48  }
    49  
    50  group: {
    51  	for k, v in foo {
    52  		comp: "\(k)": v
    53  	}
    54  }
    55  -- diff/-out/trim-v3-noshare<==>+out/trim --
    56  diff old new
    57  --- old
    58  +++ new
    59  @@ -3,7 +3,7 @@
    60   	t: [string]: {x: 5}
    61   
    62   	// Don't remove u!
    63  -	t: u: {}
    64  +	t: u: _
    65   }
    66   
    67   group: {
    68  -- out/trim --
    69  == in.cue
    70  foo: multipath: {
    71  	t: [string]: {x: 5}
    72  
    73  	// Don't remove u!
    74  	t: u: {}
    75  }
    76  
    77  group: {
    78  	for k, v in foo {
    79  		comp: "\(k)": v
    80  	}
    81  }