MCPcopy Create free account
hub / github.com/emicklei/dot / String

Method String

graph.go:276–280  ·  view source on GitHub ↗

String returns the source in dot notation.

()

Source from the content-addressed store, hash-verified

274
275// String returns the source in dot notation.
276func (g *Graph) String() string {
277 b := new(bytes.Buffer)
278 g.Write(b)
279 return b.String()
280}
281
282func (g *Graph) Write(w io.Writer) {
283 g.IndentedWrite(NewIndentWriter(w))

Callers 15

TestEdgeStyleHelpersFunction · 0.95
TestEdgeWithTwoPortsFunction · 0.95
TestEdgeWithNoPortsFunction · 0.95
TestEdgeWithFirstPortFunction · 0.95
TestEdgeWithSecondPortFunction · 0.95
TestNonStringAttributeFunction · 0.95
TestSimpleRecordFunction · 0.95
TestTwoColumnsRecordFunction · 0.95
TestEmptyFunction · 0.95

Calls 1

WriteMethod · 0.95

Tested by 15

TestEdgeStyleHelpersFunction · 0.76
TestEdgeWithTwoPortsFunction · 0.76
TestEdgeWithNoPortsFunction · 0.76
TestEdgeWithFirstPortFunction · 0.76
TestEdgeWithSecondPortFunction · 0.76
TestNonStringAttributeFunction · 0.76
TestSimpleRecordFunction · 0.76
TestTwoColumnsRecordFunction · 0.76
TestEmptyFunction · 0.76