(t *testing.T)
| 323 | } |
| 324 | |
| 325 | func TestTrimTree(t *testing.T) { |
| 326 | tests := createTrimTreeTestCases() |
| 327 | for _, test := range tests { |
| 328 | graph := test.initial |
| 329 | graph.TrimTree(test.keep) |
| 330 | if !graphsEqual(graph, test.expected) { |
| 331 | t.Fatalf("Graphs do not match.\nExpected: %s\nFound: %s\n", |
| 332 | expectedNodesDebugString(test.expected), |
| 333 | graphDebugString(graph)) |
| 334 | } |
| 335 | } |
| 336 | } |
| 337 | |
| 338 | func nodeTestProfile() *profile.Profile { |
| 339 | mappings := []*profile.Mapping{ |
nothing calls this directly
no test coverage detected
searching dependent graphs…