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

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