createTestCase3 creates an initially empty graph and expects an empty graph after trimming.
()
| 278 | // createTestCase3 creates an initially empty graph and expects an empty graph |
| 279 | // after trimming. |
| 280 | func 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 | // |
nothing calls this directly
no test coverage detected
searching dependent graphs…