...

Text file src/cuelang.org/go/cue/testdata/basicrewrite/009_reference.txtar

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

     1# DO NOT EDIT; generated by go run testdata/gen.go
     2#
     3#name: reference
     4#evalPartial
     5-- in.cue --
     6a: b
     7b: 2
     8d: {
     9	d: 3
    10	e: d
    11}
    12e: {
    13	e: {
    14		v: 1
    15	}
    16	f: {
    17		v: e.v
    18	}
    19}
    20-- out/def --
    21a: 2
    22b: 2
    23d: {
    24	d: 3
    25	e: 3
    26}
    27e: {
    28	e: {
    29		v: 1
    30	}
    31	f: {
    32		v: 1
    33	}
    34}
    35-- out/export --
    36a: 2
    37b: 2
    38d: {
    39	d: 3
    40	e: 3
    41}
    42e: {
    43	e: {
    44		v: 1
    45	}
    46	f: {
    47		v: 1
    48	}
    49}
    50-- out/yaml --
    51a: 2
    52b: 2
    53d:
    54  d: 3
    55  e: 3
    56e:
    57  e:
    58    v: 1
    59  f:
    60    v: 1
    61-- out/json --
    62{"a":2,"b":2,"d":{"d":3,"e":3},"e":{"e":{"v":1},"f":{"v":1}}}
    63-- out/legacy-debug --
    64<0>{a: 2, b: 2, d: <1>{d: 3, e: 3}, e: <2>{e: <3>{v: 1}, f: <4>{v: 1}}}
    65-- out/compile --
    66--- in.cue
    67{
    68  a: 〈0;b〉
    69  b: 2
    70  d: {
    71    d: 3
    72    e: 〈0;d〉
    73  }
    74  e: {
    75    e: {
    76      v: 1
    77    }
    78    f: {
    79      v: 〈1;e〉.v
    80    }
    81  }
    82}
    83-- out/eval/stats --
    84Leaks:  0
    85Freed:  11
    86Reused: 7
    87Allocs: 4
    88Retain: 1
    89
    90Unifications: 11
    91Conjuncts:    13
    92Disjuncts:    11
    93-- out/eval --
    94(struct){
    95  a: (int){ 2 }
    96  b: (int){ 2 }
    97  d: (struct){
    98    d: (int){ 3 }
    99    e: (int){ 3 }
   100  }
   101  e: (struct){
   102    e: (struct){
   103      v: (int){ 1 }
   104    }
   105    f: (struct){
   106      v: (int){ 1 }
   107    }
   108  }
   109}

View as plain text