github.com/solo-io/cue@v0.4.7/cue/testdata/definitions/039_augment_closed_optionals.txtar (about)

     1  # DO NOT EDIT; generated by go run testdata/gen.go
     2  #
     3  #name: augment closed optionals
     4  #evalFull
     5  -- in.cue --
     6  #A: {
     7  	[=~"^[a-s]*$"]: int
     8  }
     9  #B: {
    10  	[=~"^[m-z]*?"]: int
    11  }
    12  #C: {
    13  	#A & #B
    14  	{[=~"^Q*$"]: int}
    15  }
    16  c: #C & {QQ: 3}
    17  #D: {
    18  	#A
    19  	#B
    20  }
    21  d: #D & {aaa: 4}
    22  -- out/def --
    23  #A: {
    24  	[=~"^[a-s]*$"]: int
    25  }
    26  #B: {
    27  	[=~"^[m-z]*?"]: int
    28  }
    29  #C: {
    30  	#A & #B
    31  	{[=~"^Q*$"]: int}
    32  }
    33  c: #C & {
    34  	QQ: 3
    35  }
    36  #D: {
    37  	#A
    38  	#B
    39  }
    40  d: #D & {
    41  	aaa: 4
    42  }
    43  -- out/export --
    44  c: {
    45  	QQ: 3
    46  }
    47  d: {
    48  	aaa: 4
    49  }
    50  -- out/yaml --
    51  c:
    52    QQ: 3
    53  d:
    54    aaa: 4
    55  -- out/json --
    56  {"c":{"QQ":3},"d":{"aaa":4}}
    57  -- out/legacy-debug --
    58  <0>{#A: <1>C{[=~"^[a-s]*$"]: <2>(_: string)->int, }, #B: <3>C{[=~"^[m-z]*?"]: <4>(_: string)->int, }, #C: <5>C{C{[=~"^Q*$"]: <6>(_: string)->int}, C{(C{[=~"^[a-s]*$"]: <7>(_: string)->int} & C{[=~"^[m-z]*?"]: <8>(_: string)->int})}, }, c: <9>C{C{[=~"^Q*$"]: <10>(_: string)->int}, C{(C{[=~"^[a-s]*$"]: <11>(_: string)->int} & C{[=~"^[m-z]*?"]: <12>(_: string)->int})}, QQ: 3}, #D: <13>C{[=~"^[a-s]*$"]: <14>(_: string)->int, [=~"^[m-z]*?"]: <15>(_: string)->int, }, d: <16>C{[=~"^[a-s]*$"]: <17>(_: string)->int, [=~"^[m-z]*?"]: <18>(_: string)->int, aaa: 4}}
    59  -- out/compile --
    60  --- in.cue
    61  {
    62    #A: {
    63      [=~"^[a-s]*$"]: int
    64    }
    65    #B: {
    66      [=~"^[m-z]*?"]: int
    67    }
    68    #C: {
    69      (〈1;#A〉 & 〈1;#B〉)
    70      {
    71        [=~"^Q*$"]: int
    72      }
    73    }
    74    c: (〈0;#C〉 & {
    75      QQ: 3
    76    })
    77    #D: {
    78      〈1;#A〉
    79      〈1;#B〉
    80    }
    81    d: (〈0;#D〉 & {
    82      aaa: 4
    83    })
    84  }
    85  -- out/eval --
    86  (struct){
    87    #A: (#struct){
    88    }
    89    #B: (#struct){
    90    }
    91    #C: (#struct){
    92    }
    93    c: (#struct){
    94      QQ: (int){ 3 }
    95    }
    96    #D: (#struct){
    97    }
    98    d: (#struct){
    99      aaa: (int){ 4 }
   100    }
   101  }