cuelang.org/go@v0.10.1/tools/flow/testdata/slice.txtar (about) 1 #FindHiddenTasks: true 2 -- in.cue -- 3 4 // TODO test when root has the list embedded and 5 // some hidden task fields too. See https://github.com/cue-lang/cue/issues/2366. 6 root: [ 7 { 8 $id: "valToOut" 9 val: "foo" 10 out: string 11 }, 12 { 13 $id: "valToOut" 14 $after: root[0] 15 val: "bar" 16 out: string 17 }, 18 { 19 $id: "valToOut" 20 out: root[0].out + root[1].out 21 }, 22 ] 23 24 -- out/run/errors -- 25 -- out/run/t0 -- 26 graph TD 27 t0("root[0] [Ready]") 28 t1("root[1] [Waiting]") 29 t1-->t0 30 t2("root[2] [Waiting]") 31 t2-->t0 32 t2-->t1 33 34 -- out/run/t1 -- 35 graph TD 36 t0("root[0] [Terminated]") 37 t1("root[1] [Ready]") 38 t1-->t0 39 t2("root[2] [Waiting]") 40 t2-->t0 41 t2-->t1 42 43 -- out/run/t1/value -- 44 { 45 $id: "valToOut" 46 val: "foo" 47 out: "foo" 48 } 49 -- out/run/t1/stats -- 50 Leaks: 0 51 Freed: 17 52 Reused: 12 53 Allocs: 5 54 Retain: 0 55 56 Unifications: 17 57 Conjuncts: 30 58 Disjuncts: 17 59 -- out/run/t2 -- 60 graph TD 61 t0("root[0] [Terminated]") 62 t1("root[1] [Terminated]") 63 t1-->t0 64 t2("root[2] [Ready]") 65 t2-->t0 66 t2-->t1 67 68 -- out/run/t2/value -- 69 { 70 $id: "valToOut" 71 $after: { 72 $id: "valToOut" 73 val: "foo" 74 out: "foo" 75 } 76 val: "bar" 77 out: "bar" 78 } 79 -- out/run/t2/stats -- 80 Leaks: 0 81 Freed: 17 82 Reused: 17 83 Allocs: 0 84 Retain: 0 85 86 Unifications: 17 87 Conjuncts: 33 88 Disjuncts: 17 89 -- out/run/t3 -- 90 graph TD 91 t0("root[0] [Terminated]") 92 t1("root[1] [Terminated]") 93 t1-->t0 94 t2("root[2] [Terminated]") 95 t2-->t0 96 t2-->t1 97 98 -- out/run/t3/value -- 99 { 100 $id: "valToOut" 101 out: "foobar" 102 } 103 -- out/run/t3/stats -- 104 Leaks: 0 105 Freed: 0 106 Reused: 0 107 Allocs: 0 108 Retain: 0 109 110 Unifications: 0 111 Conjuncts: 0 112 Disjuncts: 0 113 -- out/run/stats/totals -- 114 Leaks: 0 115 Freed: 34 116 Reused: 29 117 Allocs: 5 118 Retain: 0 119 120 Unifications: 34 121 Conjuncts: 63 122 Disjuncts: 34