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

Function TestComposeWithStandardGraphAndURL

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

Source from the content-addressed store, hash-verified

128}
129
130func TestComposeWithStandardGraphAndURL(t *testing.T) {
131 g := baseGraph()
132 a, c := baseAttrsAndConfig()
133 c.LegendURL = "http://example.com"
134
135 var buf bytes.Buffer
136 ComposeDot(&buf, g, a, c)
137
138 compareGraphs(t, buf.Bytes(), "compose6.dot")
139}
140
141func TestComposeWithNamesThatNeedEscaping(t *testing.T) {
142 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…