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

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