...

Text file src/cuelang.org/go/tools/flow/testdata/slice.txtar

Documentation: cuelang.org/go/tools/flow/testdata

     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.
     6root: [
     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 --
    26graph 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 --
    35graph 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 --
    50Leaks:  0
    51Freed:  17
    52Reused: 12
    53Allocs: 5
    54Retain: 0
    55
    56Unifications: 17
    57Conjuncts:    30
    58Disjuncts:    17
    59-- out/run/t2 --
    60graph 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 --
    80Leaks:  0
    81Freed:  17
    82Reused: 17
    83Allocs: 0
    84Retain: 0
    85
    86Unifications: 17
    87Conjuncts:    33
    88Disjuncts:    17
    89-- out/run/t3 --
    90graph 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 --
   104Leaks:  0
   105Freed:  0
   106Reused: 0
   107Allocs: 0
   108Retain: 0
   109
   110Unifications: 0
   111Conjuncts:    0
   112Disjuncts:    0
   113-- out/run/stats/totals --
   114Leaks:  0
   115Freed:  34
   116Reused: 29
   117Allocs: 5
   118Retain: 0
   119
   120Unifications: 34
   121Conjuncts:    63
   122Disjuncts:    34

View as plain text