cuelang.org/go@v0.10.1/cue/testdata/resolve/034_closing_structs.txtar (about)

     1  # DO NOT EDIT; generated by go run testdata/gen.go
     2  #
     3  #name: closing structs
     4  #evalPartial
     5  -- in.cue --
     6  op: {x: int} // {x: int}
     7  ot: {x: int, ...} // {x: int, ...}
     8  cp: close({x: int})      // closed({x: int})
     9  ct: close({x: int, ...}) // {x: int, ...}
    10  
    11  opot: op & ot // {x: int, ...}
    12  otop: ot & op // {x: int, ...}
    13  opcp: op & cp // closed({x: int})
    14  cpop: cp & op // closed({x: int})
    15  opct: op & ct // {x: int, ...}
    16  ctop: ct & op // {x: int, ...}
    17  otcp: ot & cp // closed({x: int})
    18  cpot: cp & ot // closed({x: int})
    19  otct: ot & ct // {x: int, ...}
    20  ctot: ct & ot // {x: int, ...}
    21  cpct: cp & ct // closed({x: int})
    22  ctcp: ct & cp // closed({x: int})
    23  ctct: ct & ct // {x: int, ...}
    24  -- out/def --
    25  op: {
    26  	x: int
    27  }
    28  ot: {
    29  	x: int
    30  	...
    31  }
    32  cp: close({
    33  	x: int
    34  })
    35  ct: {
    36  	x: int
    37  	...
    38  }
    39  opot: op & ot
    40  otop: ot & op
    41  opcp: op & cp
    42  cpop: cp & op
    43  opct: op & ct
    44  ctop: ct & op
    45  otcp: ot & cp
    46  cpot: cp & ot
    47  otct: ot & ct
    48  ctot: ct & ot
    49  cpct: cp & ct
    50  ctcp: ct & cp
    51  ctct: ct & ct
    52  -- out/legacy-debug --
    53  <0>{op: <1>{x: int}, ot: <2>{x: int, ...}, cp: <3>C{x: int}, ct: <4>{x: int, ...}, opot: <5>{x: int, ...}, otop: <6>{x: int, ...}, opcp: <7>C{x: int}, cpop: <8>C{x: int}, opct: <9>{x: int, ...}, ctop: <10>{x: int, ...}, otcp: <11>C{x: int}, cpot: <12>C{x: int}, otct: <13>{x: int, ...}, ctot: <14>{x: int, ...}, cpct: <15>C{x: int}, ctcp: <16>C{x: int}, ctct: <17>{x: int, ...}}
    54  -- out/eval/stats --
    55  Leaks:  15
    56  Freed:  35
    57  Reused: 32
    58  Allocs: 18
    59  Retain: 15
    60  
    61  Unifications: 50
    62  Conjuncts:    115
    63  Disjuncts:    50
    64  -- out/eval --
    65  (struct){
    66    op: (struct){
    67      x: (int){ int }
    68    }
    69    ot: (struct){
    70      x: (int){ int }
    71    }
    72    cp: (#struct){
    73      x: (int){ int }
    74    }
    75    ct: (#struct){
    76      x: (int){ int }
    77    }
    78    opot: (struct){
    79      x: (int){ int }
    80    }
    81    otop: (struct){
    82      x: (int){ int }
    83    }
    84    opcp: (#struct){
    85      x: (int){ int }
    86    }
    87    cpop: (#struct){
    88      x: (int){ int }
    89    }
    90    opct: (#struct){
    91      x: (int){ int }
    92    }
    93    ctop: (#struct){
    94      x: (int){ int }
    95    }
    96    otcp: (#struct){
    97      x: (int){ int }
    98    }
    99    cpot: (#struct){
   100      x: (int){ int }
   101    }
   102    otct: (#struct){
   103      x: (int){ int }
   104    }
   105    ctot: (#struct){
   106      x: (int){ int }
   107    }
   108    cpct: (#struct){
   109      x: (int){ int }
   110    }
   111    ctcp: (#struct){
   112      x: (int){ int }
   113    }
   114    ctct: (#struct){
   115      x: (int){ int }
   116    }
   117  }
   118  -- out/compile --
   119  --- in.cue
   120  {
   121    op: {
   122      x: int
   123    }
   124    ot: {
   125      x: int
   126      ...
   127    }
   128    cp: close({
   129      x: int
   130    })
   131    ct: close({
   132      x: int
   133      ...
   134    })
   135    opot: (〈0;op〉 & 〈0;ot〉)
   136    otop: (〈0;ot〉 & 〈0;op〉)
   137    opcp: (〈0;op〉 & 〈0;cp〉)
   138    cpop: (〈0;cp〉 & 〈0;op〉)
   139    opct: (〈0;op〉 & 〈0;ct〉)
   140    ctop: (〈0;ct〉 & 〈0;op〉)
   141    otcp: (〈0;ot〉 & 〈0;cp〉)
   142    cpot: (〈0;cp〉 & 〈0;ot〉)
   143    otct: (〈0;ot〉 & 〈0;ct〉)
   144    ctot: (〈0;ct〉 & 〈0;ot〉)
   145    cpct: (〈0;cp〉 & 〈0;ct〉)
   146    ctcp: (〈0;ct〉 & 〈0;cp〉)
   147    ctct: (〈0;ct〉 & 〈0;ct〉)
   148  }