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

Function TestString

pkg/controller/graph/dag_test.go:346–354  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

344}
345
346func TestString(t *testing.T) {
347 dag := newTestDAG()
348 str := dag.String()
349 expectedOrder := []string{"|", "4", "5", "1", "10", "12", "11", "9", "6", "0", "3", "2", "7", "8"}
350 expectedStr := strings.Join(expectedOrder, "->")
351 if str != expectedStr {
352 t.Errorf("dag string error, expected: %s, actual: %s", expectedStr, str)
353 }
354}
355
356func less(v1, v2 Vertex) bool {
357 val1, _ := v1.(int)

Callers

nothing calls this directly

Calls 2

newTestDAGFunction · 0.85
StringMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…