github.com/solo-io/cue@v0.4.7/cue/testdata/fulleval/026_dont_convert_incomplete_errors_to_non-incomplete.txtar (about)

     1  # DO NOT EDIT; generated by go run testdata/gen.go
     2  #
     3  #name: dont convert incomplete errors to non-incomplete
     4  #evalFull
     5  -- in.cue --
     6  import "strings"
     7  
     8  n1: {min: <max, max: >min}
     9  n2: -num
    10  n3: +num
    11  n4: num + num
    12  n5: num - num
    13  n6: num * num
    14  n7: num / num
    15  
    16  b1: !is
    17  
    18  s1: "\(str)"
    19  s2: strings.ContainsAny("dd")
    20  s3: strings.ContainsAny(str, "dd")
    21  
    22  str: string
    23  num: <4
    24  is:  bool
    25  -- out/def --
    26  import "strings"
    27  
    28  n1: {
    29  	min: <max
    30  	max: >min
    31  }
    32  n2:  -num
    33  num: <4
    34  n3:  +num
    35  n4:  num + num
    36  n5:  num - num
    37  n6:  num * num
    38  n7:  num / num
    39  b1:  !is
    40  is:  bool
    41  s1:  "\(str)"
    42  str: string
    43  s2:  strings.ContainsAny("dd")
    44  s3:  strings.ContainsAny(str, "dd")
    45  -- out/legacy-debug --
    46  <0>{n1: <1>{min: <<2>.max, max: ><2>.min}, n2: -<3>.num, num: <4, n3: +<3>.num, n4: (<3>.num + <3>.num), n5: (<3>.num - <3>.num), n6: (<3>.num * <3>.num), n7: (<3>.num / <3>.num), b1: !<3>.is, is: bool, s1: ""+<3>.str+"", str: string, s2: strings.ContainsAny ("dd"), s3: <4>.ContainsAny (<3>.str,"dd")}
    47  -- out/eval --
    48  (struct){
    49    n1: (struct){
    50      min: (_|_){
    51        // [cycle] cycle error
    52      }
    53      max: (_|_){
    54        // [cycle] cycle error
    55      }
    56    }
    57    n2: (_|_){
    58      // [incomplete] n2: operand num of '-' not concrete (was number):
    59      //     ./in.cue:4:6
    60    }
    61    n3: (_|_){
    62      // [incomplete] n3: operand num of '+' not concrete (was number):
    63      //     ./in.cue:5:6
    64    }
    65    n4: (_|_){
    66      // [incomplete] n4: non-concrete value <4 in operand to +:
    67      //     ./in.cue:6:5
    68      //     ./in.cue:18:6
    69    }
    70    n5: (_|_){
    71      // [incomplete] n5: non-concrete value <4 in operand to -:
    72      //     ./in.cue:7:5
    73      //     ./in.cue:18:6
    74    }
    75    n6: (_|_){
    76      // [incomplete] n6: non-concrete value <4 in operand to *:
    77      //     ./in.cue:8:5
    78      //     ./in.cue:18:6
    79    }
    80    n7: (_|_){
    81      // [incomplete] n7: non-concrete value <4 in operand to /:
    82      //     ./in.cue:9:5
    83      //     ./in.cue:18:6
    84    }
    85    b1: (_|_){
    86      // [incomplete] b1: operand is of '!' not concrete (was bool):
    87      //     ./in.cue:11:6
    88    }
    89    s1: (_|_){
    90      // [incomplete] s1: invalid interpolation: non-concrete value string (type string):
    91      //     ./in.cue:13:5
    92    }
    93    s2: (string){ strings.ContainsAny("dd") }
    94    s3: (_|_){
    95      // [incomplete] error in call to strings.ContainsAny: non-concrete value string:
    96      //     ./in.cue:15:5
    97    }
    98    str: (string){ string }
    99    num: (number){ <4 }
   100    is: (bool){ bool }
   101  }
   102  -- out/compile --
   103  --- in.cue
   104  {
   105    n1: {
   106      min: <〈0;max〉
   107      max: >〈0;min〉
   108    }
   109    n2: -〈0;num〉
   110    n3: +〈0;num〉
   111    n4: (〈0;num〉 + 〈0;num〉)
   112    n5: (〈0;num〉 - 〈0;num〉)
   113    n6: (〈0;num〉 * 〈0;num〉)
   114    n7: (〈0;num〉 / 〈0;num〉)
   115    b1: !〈0;is〉
   116    s1: "\(〈0;str〉)"
   117    s2: 〈import;strings〉.ContainsAny("dd")
   118    s3: 〈import;strings〉.ContainsAny(〈0;str〉, "dd")
   119    str: string
   120    num: <4
   121    is: bool
   122  }