github.com/solo-io/cue@v0.4.7/cue/testdata/basicrewrite/000_errors.txtar (about)

     1  # DO NOT EDIT; generated by go run testdata/gen.go
     2  #
     3  #name: errors
     4  #evalPartial
     5  -- in.cue --
     6  a: _|_ & _|_
     7  b: null & _|_
     8  c: b.a == _|_
     9  d: _|_ != b.a
    10  e: _|_ == _|_
    11  f: ({} & false) == _|_
    12  g: _|_ != ({} & false)
    13  -- out/def --
    14  a: _|_ // explicit error (_|_ literal) in source
    15  b: _|_ // explicit error (_|_ literal) in source
    16  c: true
    17  d: false
    18  e: true
    19  -- out/legacy-debug --
    20  <0>{a: _|_(explicit error (_|_ literal) in source), b: _|_(explicit error (_|_ literal) in source), c: true, d: false, e: true}
    21  -- out/compile --
    22  --- in.cue
    23  {
    24    a: (_|_(explicit error (_|_ literal) in source) & _|_(explicit error (_|_ literal) in source))
    25    b: (null & _|_(explicit error (_|_ literal) in source))
    26    c: (〈0;b〉.a == _|_(explicit error (_|_ literal) in source))
    27    d: (_|_(explicit error (_|_ literal) in source) != 〈0;b〉.a)
    28    e: (_|_(explicit error (_|_ literal) in source) == _|_(explicit error (_|_ literal) in source))
    29    f: (({} & false) == _|_(explicit error (_|_ literal) in source))
    30    g: (_|_(explicit error (_|_ literal) in source) != ({} & false))
    31  }
    32  -- out/eval --
    33  Errors:
    34  explicit error (_|_ literal) in source:
    35      ./in.cue:1:4
    36  explicit error (_|_ literal) in source:
    37      ./in.cue:2:11
    38  
    39  Result:
    40  (_|_){
    41    // [user]
    42    a: (_|_){
    43      // [user] explicit error (_|_ literal) in source:
    44      //     ./in.cue:1:4
    45    }
    46    b: (_|_){
    47      // [user] explicit error (_|_ literal) in source:
    48      //     ./in.cue:2:11
    49    }
    50    c: (bool){ true }
    51    d: (bool){ false }
    52    e: (bool){ true }
    53    f: (bool){ true }
    54    g: (bool){ false }
    55  }