...

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

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

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

View as plain text