...

Text file src/cuelang.org/go/cue/testdata/resolve/014_null_coalescing.txtar

Documentation: cuelang.org/go/cue/testdata/resolve

     1# DO NOT EDIT; generated by go run testdata/gen.go
     2#
     3#name: null coalescing
     4#evalPartial
     5-- in.cue --
     6a: null
     7b: a.x | "b"
     8c: a["x"] | "c"
     9-- out/def --
    10a: null
    11b: "b"
    12c: "c"
    13-- out/export --
    14a: null
    15b: "b"
    16c: "c"
    17-- out/yaml --
    18a: null
    19b: b
    20c: c
    21-- out/json --
    22{"a":null,"b":"b","c":"c"}
    23-- out/legacy-debug --
    24<0>{a: null, b: "b", c: "c"}
    25-- out/compile --
    26--- in.cue
    27{
    28  a: null
    29  b: (怈0;a怉.x|"b")
    30  c: (怈0;a怉["x"]|"c")
    31}
    32-- out/eval/stats --
    33Leaks:  0
    34Freed:  8
    35Reused: 5
    36Allocs: 3
    37Retain: 0
    38
    39Unifications: 4
    40Conjuncts:    8
    41Disjuncts:    8
    42-- out/eval --
    43(struct){
    44  a: (null){ null }
    45  b: (string){ "b" }
    46  c: (string){ "c" }
    47}

View as plain text