MCPcopy
hub / github.com/apecloud/kubeblocks / newTestDAG

Function newTestDAG

pkg/controller/graph/dag_test.go:362–388  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

360}
361
362func newTestDAG() *DAG {
363 dag := NewDAG()
364 for i := 0; i < 13; i++ {
365 dag.AddVertex(i)
366 }
367 dag.Connect(2, 3)
368 dag.Connect(0, 6)
369 dag.Connect(0, 1)
370 dag.Connect(2, 0)
371 dag.Connect(11, 12)
372 dag.Connect(9, 12)
373 dag.Connect(9, 10)
374 dag.Connect(9, 11)
375 dag.Connect(3, 5)
376 dag.Connect(8, 7)
377 dag.Connect(5, 4)
378 dag.Connect(0, 5)
379 dag.Connect(6, 4)
380 dag.Connect(6, 9)
381 dag.Connect(7, 6)
382 dag.Connect(7, 2)
383 dag.Connect(3, 0)
384 dag.Connect(12, 10)
385 dag.Connect(10, 1)
386 dag.Connect(1, 5)
387 return dag
388}

Callers 4

TestWalkTopoOrderFunction · 0.85
TestWalkBFSFunction · 0.85
TestEqualsFunction · 0.85
TestStringFunction · 0.85

Calls 3

AddVertexMethod · 0.95
ConnectMethod · 0.95
NewDAGFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…