cuelang.org/go@v0.10.1/cue/testdata/fulleval/007_different_labels_for_templates.txtar (about)

     1  # DO NOT EDIT; generated by go run testdata/gen.go
     2  #
     3  #name: different labels for templates
     4  #evalFull
     5  -- in.cue --
     6  a: [X=string]: {name: X}
     7  a: [Name=string]: {name: Name}
     8  a: foo: {}
     9  -- out/def --
    10  a: {
    11  	{[X=string]: {
    12  		name: X & X
    13  	}}
    14  	foo: {
    15  		name: "foo"
    16  	}
    17  }
    18  -- out/export --
    19  a: {
    20  	foo: {
    21  		name: "foo"
    22  	}
    23  }
    24  -- out/yaml --
    25  a:
    26    foo:
    27      name: foo
    28  -- out/json --
    29  {"a":{"foo":{"name":"foo"}}}
    30  -- out/legacy-debug --
    31  <0>{a: <1>{[]: <2>(X: string)->(<3>{name: <2>.X} & <4>{name: <2>.X}), foo: <5>{name: "foo"}}}
    32  -- out/compile --
    33  --- in.cue
    34  {
    35    a: {
    36      [string]: {
    37        name: 〈1;-〉
    38      }
    39    }
    40    a: {
    41      [string]: {
    42        name: 〈1;-〉
    43      }
    44    }
    45    a: {
    46      foo: {}
    47    }
    48  }
    49  -- out/eval/stats --
    50  Leaks:  0
    51  Freed:  4
    52  Reused: 0
    53  Allocs: 4
    54  Retain: 0
    55  
    56  Unifications: 4
    57  Conjuncts:    9
    58  Disjuncts:    4
    59  -- out/eval --
    60  (struct){
    61    a: (struct){
    62      foo: (struct){
    63        name: (string){ "foo" }
    64      }
    65    }
    66  }