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

Function createTestCase3

internal/graph/graph_test.go:280–288  ·  view source on GitHub ↗

createTestCase3 creates an initially empty graph and expects an empty graph after trimming.

()

Source from the content-addressed store, hash-verified

278// createTestCase3 creates an initially empty graph and expects an empty graph
279// after trimming.
280func createTestCase3() trimTreeTestcase {
281 graph := &Graph{make(Nodes, 0)}
282 expected, keep := createExpectedNodes()
283 return trimTreeTestcase{
284 initial: graph,
285 expected: expected,
286 keep: keep,
287 }
288}
289
290// createTestCase4 creates a test case that initially looks like:
291//

Callers

nothing calls this directly

Calls 1

createExpectedNodesFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…