cuelang.org/go@v0.10.1/cue/testdata/basicrewrite/017_null.txtar (about)

     1  # DO NOT EDIT; generated by go run testdata/gen.go
     2  #
     3  #name: null
     4  #evalPartial
     5  -- in.cue --
     6  eql: null == null
     7  neq: null != null
     8  unf: null & null
     9  
    10  // errors
    11  eq1:  null == 1
    12  eq2:  1 == null
    13  ne1:  "s" != null
    14  call: null()
    15  -- out/def --
    16  eql: true
    17  neq: false
    18  unf: null
    19  
    20  // errors
    21  eq1:  false
    22  eq2:  false
    23  ne1:  true
    24  call: _|_ // cannot call non-function null (type null)
    25  -- out/legacy-debug --
    26  <0>{eql: true, neq: false, unf: null, eq1: false, eq2: false, ne1: true, call: _|_(null:cannot call non-function null (type null))}
    27  -- out/compile --
    28  --- in.cue
    29  {
    30    eql: (null == null)
    31    neq: (null != null)
    32    unf: (null & null)
    33    eq1: (null == 1)
    34    eq2: (1 == null)
    35    ne1: ("s" != null)
    36    call: null()
    37  }
    38  -- out/eval/stats --
    39  Leaks:  0
    40  Freed:  8
    41  Reused: 6
    42  Allocs: 2
    43  Retain: 0
    44  
    45  Unifications: 8
    46  Conjuncts:    9
    47  Disjuncts:    8
    48  -- out/eval --
    49  Errors:
    50  call: cannot call non-function null (type null):
    51      ./in.cue:9:7
    52  
    53  Result:
    54  (_|_){
    55    // [eval]
    56    eql: (bool){ true }
    57    neq: (bool){ false }
    58    unf: (null){ null }
    59    eq1: (bool){ false }
    60    eq2: (bool){ false }
    61    ne1: (bool){ true }
    62    call: (_|_){
    63      // [eval] call: cannot call non-function null (type null):
    64      //     ./in.cue:9:7
    65    }
    66  }