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

Function createExpectedEdges

internal/graph/graph_test.go:179–188  ·  view source on GitHub ↗

createExpectedEdges creates directed edges from the parent to each of the children.

(parent expectedNode, children ...expectedNode)

Source from the content-addressed store, hash-verified

177// createExpectedEdges creates directed edges from the parent to each of the
178// children.
179func createExpectedEdges(parent expectedNode, children ...expectedNode) {
180 for _, child := range children {
181 edge := &Edge{
182 Src: parent.node,
183 Dest: child.node,
184 }
185 parent.out[child.node] = edge
186 child.in[parent.node] = edge
187 }
188}
189
190// createTestCase1 creates a test case that initially looks like:
191//

Callers 2

createTestCase1Function · 0.85
createTestCase2Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…