...

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

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

     1-- in.cue --
     2root: {
     3	a: {
     4		$id:    "valToOut"
     5		$after: c.$id
     6	}
     7	b: {
     8		$id:    "valToOut"
     9		$after: a.$id
    10		out:    "foo"
    11	}
    12	c: {
    13		$id: "valToOut"
    14		in:  b.out
    15	}
    16}
    17-- out/run/errors --
    18error: cyclic task dependency:
    19	task root.a refers to
    20	task root.c refers to
    21	task root.b refers to
    22	task root.a:
    23    ./testdata/in.cue:2:2
    24    ./testdata/in.cue:6:2
    25    ./testdata/in.cue:11:2
    26-- out/run/t0 --
    27graph TD
    28  t0("root.a [Waiting]")
    29  t0-->t2
    30  t1("root.b [Waiting]")
    31  t1-->t0
    32  t2("root.c [Waiting]")
    33  t2-->t1
    34
    35-- out/run/stats/totals --
    36Leaks:  0
    37Freed:  0
    38Reused: 0
    39Allocs: 0
    40Retain: 0
    41
    42Unifications: 0
    43Conjuncts:    0
    44Disjuncts:    0

View as plain text