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

Function createTestCase4

internal/graph/graph_test.go:297–309  ·  view source on GitHub ↗

createTestCase4 creates a test case that initially looks like: 0. After keeping 0, it expects the graph: 0.

()

Source from the content-addressed store, hash-verified

295//
296// 0.
297func createTestCase4() trimTreeTestcase {
298 graph := &Graph{make(Nodes, 1)}
299 nodes := graph.Nodes
300 for i := range nodes {
301 nodes[i] = createEmptyNode()
302 }
303 expected, keep := createExpectedNodes(nodes[0])
304 return trimTreeTestcase{
305 initial: graph,
306 expected: expected,
307 keep: keep,
308 }
309}
310
311func createTrimTreeTestCases() []trimTreeTestcase {
312 caseGenerators := []func() trimTreeTestcase{

Callers

nothing calls this directly

Calls 2

createEmptyNodeFunction · 0.85
createExpectedNodesFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…