createTestCase4 creates a test case that initially looks like: 0. After keeping 0, it expects the graph: 0.
()
| 295 | // |
| 296 | // 0. |
| 297 | func 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 | |
| 311 | func createTrimTreeTestCases() []trimTreeTestcase { |
| 312 | caseGenerators := []func() trimTreeTestcase{ |
nothing calls this directly
no test coverage detected
searching dependent graphs…