createExpectedEdges creates directed edges from the parent to each of the children.
(parent expectedNode, children ...expectedNode)
| 177 | // createExpectedEdges creates directed edges from the parent to each of the |
| 178 | // children. |
| 179 | func 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 | // |
no outgoing calls
no test coverage detected
searching dependent graphs…