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

     1  #IgnoreConcrete: true
     2  #InferTasks: true
     3  -- in.cue --
     4  package p
     5  
     6  import (
     7  	"tool/cli"
     8  	"encoding/json"
     9  )
    10  
    11  input: [name=string]: {
    12  	{#in: name, #out: #in}.#out
    13  }
    14  root: foo: {
    15  	cli.Print & {text: json.Marshal(input)}
    16  }
    17  -- out/run/errors --
    18  -- out/run/t0 --
    19  graph TD
    20    t0("root.foo [Ready]")
    21  
    22  -- out/run/t1 --
    23  graph TD
    24    t0("root.foo [Terminated]")
    25  
    26  -- out/run/t1/value --
    27  {
    28  	$id:    "tool/cli.Print"
    29  	stdout: "foo"
    30  	text:   "{}"
    31  }
    32  -- out/run/t1/stats --
    33  Leaks:  0
    34  Freed:  9
    35  Reused: 3
    36  Allocs: 6
    37  Retain: 0
    38  
    39  Unifications: 7
    40  Conjuncts:    16
    41  Disjuncts:    9
    42  -- out/run/stats/totals --
    43  Leaks:  0
    44  Freed:  9
    45  Reused: 3
    46  Allocs: 6
    47  Retain: 0
    48  
    49  Unifications: 7
    50  Conjuncts:    16
    51  Disjuncts:    9