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

Function TestComposeWithStandardGraph

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

Source from the content-addressed store, hash-verified

31var updateFlag = flag.Bool("update", false, "Update the golden files")
32
33func TestComposeWithStandardGraph(t *testing.T) {
34 g := baseGraph()
35 a, c := baseAttrsAndConfig()
36
37 var buf bytes.Buffer
38 ComposeDot(&buf, g, a, c)
39
40 compareGraphs(t, buf.Bytes(), "compose1.dot")
41}
42
43func TestComposeWithNodeAttributesAndZeroFlat(t *testing.T) {
44 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…