MCPcopy Create free account
hub / github.com/aws-cloudformation/rain / String

Method String

cft/graph/graph.go:101–114  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

99}
100
101func (g *Graph) String() string {
102 out := strings.Builder{}
103
104 for _, left := range g.order {
105 out.WriteString(fmt.Sprintf("%s:\n", left))
106 if len(g.nodes[left]) > 0 {
107 for right := range g.nodes[left] {
108 out.WriteString(fmt.Sprintf("- %s\n", right))
109 }
110 }
111 }
112
113 return out.String()
114}
115
116func (g *Graph) add(item Node) {
117 if _, ok := g.nodes[item]; !ok {

Callers

nothing calls this directly

Calls 1

StringMethod · 0.65

Tested by

no test coverage detected