cuelang.org/go@v0.10.1/tools/flow/testdata/simple.txtar (about)

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