github.com/solo-io/cue@v0.4.7/cue/testdata/disjunctions/019_ips.txtar (about)

     1  # DO NOT EDIT; generated by go run testdata/gen.go
     2  #
     3  #name: ips
     4  #evalFull
     5  -- in.cue --
     6  IP: 4 * [ uint8]
     7  
     8  Private:
     9  	*[ 192, 168, uint8, uint8] |
    10  	[ 10, uint8, uint8, uint8] |
    11  	[ 172, >=16 & <=32, uint8, uint8]
    12  
    13  Inst: Private & [ _, 10, ...]
    14  
    15  MyIP: Inst & [_, _, 10, 10]
    16  -- out/def --
    17  IP: [uint8, uint8, uint8, uint8]
    18  Private: *[192, 168, uint8, uint8] | [10, uint8, uint8, uint8] | [172, >=16 & <=32, uint8, uint8]
    19  Inst: [10, 10, uint8, uint8]
    20  MyIP: [10, 10, 10, 10]
    21  -- out/legacy-debug --
    22  <0>{IP: [(int & >=0 & int & <=255),(int & >=0 & int & <=255),(int & >=0 & int & <=255),(int & >=0 & int & <=255)], Private: [192,168,(int & >=0 & int & <=255),(int & >=0 & int & <=255)], Inst: [10,10,(int & >=0 & int & <=255),(int & >=0 & int & <=255)], MyIP: [10,10,10,10]}
    23  -- out/compile --
    24  --- in.cue
    25  {
    26    IP: (4 * [
    27      &(int, >=0, <=255),
    28    ])
    29    Private: (*[
    30      192,
    31      168,
    32      &(int, >=0, <=255),
    33      &(int, >=0, <=255),
    34    ]|[
    35      10,
    36      &(int, >=0, <=255),
    37      &(int, >=0, <=255),
    38      &(int, >=0, <=255),
    39    ]|[
    40      172,
    41      (>=16 & <=32),
    42      &(int, >=0, <=255),
    43      &(int, >=0, <=255),
    44    ])
    45    Inst: (〈0;Private〉 & [
    46      _,
    47      10,
    48      ...,
    49    ])
    50    MyIP: (〈0;Inst〉 & [
    51      _,
    52      _,
    53      10,
    54      10,
    55    ])
    56  }
    57  -- out/eval --
    58  (struct){
    59    IP: (#list){
    60      0: (int){ &(>=0, <=255, int) }
    61      1: (int){ &(>=0, <=255, int) }
    62      2: (int){ &(>=0, <=255, int) }
    63      3: (int){ &(>=0, <=255, int) }
    64    }
    65    Private: (list){ |(*(#list){
    66        0: (int){ 192 }
    67        1: (int){ 168 }
    68        2: (int){ &(>=0, <=255, int) }
    69        3: (int){ &(>=0, <=255, int) }
    70      }, (#list){
    71        0: (int){ 10 }
    72        1: (int){ &(>=0, <=255, int) }
    73        2: (int){ &(>=0, <=255, int) }
    74        3: (int){ &(>=0, <=255, int) }
    75      }, (#list){
    76        0: (int){ 172 }
    77        1: (number){ &(>=16, <=32) }
    78        2: (int){ &(>=0, <=255, int) }
    79        3: (int){ &(>=0, <=255, int) }
    80      }) }
    81    Inst: (#list){
    82      0: (int){ 10 }
    83      1: (int){ 10 }
    84      2: (int){ &(>=0, <=255, int) }
    85      3: (int){ &(>=0, <=255, int) }
    86    }
    87    MyIP: (#list){
    88      0: (int){ 10 }
    89      1: (int){ 10 }
    90      2: (int){ 10 }
    91      3: (int){ 10 }
    92    }
    93  }