MCPcopy Create free account
hub / github.com/google/pprof / TestComposeWithNamesThatNeedEscaping

Function TestComposeWithNamesThatNeedEscaping

internal/graph/dotgraph_test.go:141–151  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

139}
140
141func TestComposeWithNamesThatNeedEscaping(t *testing.T) {
142 g := baseGraph()
143 a, c := baseAttrsAndConfig()
144 g.Nodes[0].Info = NodeInfo{Name: `var"src"`}
145 g.Nodes[1].Info = NodeInfo{Name: `var"#dest#"`}
146
147 var buf bytes.Buffer
148 ComposeDot(&buf, g, a, c)
149
150 compareGraphs(t, buf.Bytes(), "compose7.dot")
151}
152
153func TestComposeWithCommentsWithNewlines(t *testing.T) {
154 g := baseGraph()

Callers

nothing calls this directly

Calls 4

baseGraphFunction · 0.85
baseAttrsAndConfigFunction · 0.85
ComposeDotFunction · 0.85
compareGraphsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…