...

Text file src/cuelang.org/go/cue/testdata/definitions/039_augment_closed_optionals.txtar

Documentation: cuelang.org/go/cue/testdata/definitions

     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}
    16c: #C & {QQ: 3}
    17#D: {
    18	#A
    19	#B
    20}
    21d: #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}
    33c: #C & {
    34	QQ: 3
    35}
    36#D: {
    37	#A
    38	#B
    39}
    40d: #D & {
    41	aaa: 4
    42}
    43-- out/export --
    44c: {
    45	QQ: 3
    46}
    47d: {
    48	aaa: 4
    49}
    50-- out/yaml --
    51c:
    52  QQ: 3
    53d:
    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/stats --
    86Leaks:  0
    87Freed:  9
    88Reused: 6
    89Allocs: 3
    90Retain: 0
    91
    92Unifications: 9
    93Conjuncts:    35
    94Disjuncts:    9
    95-- out/eval --
    96(struct){
    97  #A: (#struct){
    98  }
    99  #B: (#struct){
   100  }
   101  #C: (#struct){
   102  }
   103  c: (#struct){
   104    QQ: (int){ 3 }
   105  }
   106  #D: (#struct){
   107  }
   108  d: (#struct){
   109    aaa: (int){ 4 }
   110  }
   111}

View as plain text