depgraph: fmt
This commit is contained in:
parent
5d40725139
commit
87b3046d2a
|
@ -116,7 +116,7 @@ func (g *Graph) String() string {
|
||||||
" %s -> %s\n",
|
" %s -> %s\n",
|
||||||
dep.Source,
|
dep.Source,
|
||||||
dep.Target))
|
dep.Target))
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, n := range g.Nouns {
|
for _, n := range g.Nouns {
|
||||||
buf.WriteString(fmt.Sprintf("%s\n", n.Name))
|
buf.WriteString(fmt.Sprintf("%s\n", n.Name))
|
||||||
|
|
|
@ -62,9 +62,9 @@ c -> d
|
||||||
c -> e`)
|
c -> e`)
|
||||||
|
|
||||||
g := &Graph{
|
g := &Graph{
|
||||||
Name: "Test",
|
Name: "Test",
|
||||||
Nouns: NounMapToList(nodes),
|
Nouns: NounMapToList(nodes),
|
||||||
Root: nodes["a"],
|
Root: nodes["a"],
|
||||||
}
|
}
|
||||||
actual := g.String()
|
actual := g.String()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue