github.com/solo-io/cue@v0.4.7/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 --
    50  (struct){
    51    a: (struct){
    52      foo: (struct){
    53        name: (string){ "foo" }
    54      }
    55    }
    56  }