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

Method String

pkg/controller/graph/dag.go:271–281  ·  view source on GitHub ↗

String returns a string representation of the DAG in topology order

()

Source from the content-addressed store, hash-verified

269
270// String returns a string representation of the DAG in topology order
271func (d *DAG) String() string {
272 str := "|"
273 walkFunc := func(v Vertex) error {
274 str += fmt.Sprintf("->%v", v)
275 return nil
276 }
277 if err := d.WalkReverseTopoOrder(walkFunc, nil); err != nil {
278 return "->err"
279 }
280 return str
281}
282
283// Validate 'd' has single Root and has no cycles
284func (d *DAG) Validate() error {

Callers 15

blockingCallActionFunction · 0.45
getGRPCMessageFieldFunction · 0.45
renderTemplateDataFunction · 0.45
BuildInstanceSetFunction · 0.45
defaultWalkFuncMethod · 0.45
kbagent_test.goFile · 0.45
available_test.goFile · 0.45
CompareServiceVersionFunction · 0.45
BuildComponentFunction · 0.45

Calls 1

WalkReverseTopoOrderMethod · 0.95

Tested by 3

ListMethod · 0.36
buildRandomPodFunction · 0.36
TestStringFunction · 0.36