...
1-- cue.mod/module.cue --
2module: "mod.test/test"
3-- sub/sub.cue --
4package sub
5
6User: "sub"
7-- in.cue --
8import "mod.test/test/sub"
9
10root: {
11 a: {
12 $id: "valToOut"
13 val: "foo \(sub.User)"
14 out: string
15 }
16 b: {
17 $id: "valToOut"
18 $after: a
19 val: "bar"
20 out: string
21 }
22 c: {
23 $id: "valToOut"
24 out: a.out + b.out
25 }
26}
27-- out/run/errors --
28-- out/run/t0 --
29graph TD
30 t0("root.a [Ready]")
31 t1("root.b [Waiting]")
32 t1-->t0
33 t2("root.c [Waiting]")
34 t2-->t0
35 t2-->t1
36
37-- out/run/t1 --
38graph TD
39 t0("root.a [Terminated]")
40 t1("root.b [Ready]")
41 t1-->t0
42 t2("root.c [Waiting]")
43 t2-->t0
44 t2-->t1
45
46-- out/run/t1/value --
47{
48 $id: "valToOut"
49 val: "foo sub"
50 out: "foo sub"
51}
52-- out/run/t2 --
53graph TD
54 t0("root.a [Terminated]")
55 t1("root.b [Terminated]")
56 t1-->t0
57 t2("root.c [Ready]")
58 t2-->t0
59 t2-->t1
60
61-- out/run/t2/value --
62{
63 $id: "valToOut"
64 $after: {
65 $id: "valToOut"
66 val: "foo sub"
67 out: "foo sub"
68 }
69 val: "bar"
70 out: "bar"
71}
72-- out/run/t3 --
73graph TD
74 t0("root.a [Terminated]")
75 t1("root.b [Terminated]")
76 t1-->t0
77 t2("root.c [Terminated]")
78 t2-->t0
79 t2-->t1
80
81-- out/run/t3/value --
82{
83 $id: "valToOut"
84 out: "foo subbar"
85}
86-- out/run/t1/stats --
87Leaks: 0
88Freed: 17
89Reused: 12
90Allocs: 5
91Retain: 0
92
93Unifications: 17
94Conjuncts: 28
95Disjuncts: 17
96-- out/run/t2/stats --
97Leaks: 0
98Freed: 17
99Reused: 17
100Allocs: 0
101Retain: 0
102
103Unifications: 17
104Conjuncts: 28
105Disjuncts: 17
106-- out/run/t3/stats --
107Leaks: 0
108Freed: 0
109Reused: 0
110Allocs: 0
111Retain: 0
112
113Unifications: 0
114Conjuncts: 0
115Disjuncts: 0
116-- out/run/stats/totals --
117Leaks: 0
118Freed: 34
119Reused: 29
120Allocs: 5
121Retain: 0
122
123Unifications: 34
124Conjuncts: 56
125Disjuncts: 34
View as plain text