(t *testing.T, c *chart.Chart)
| 540 | } |
| 541 | |
| 542 | func validateDependencyTree(t *testing.T, c *chart.Chart) { |
| 543 | t.Helper() |
| 544 | for _, dependency := range c.Dependencies() { |
| 545 | if dependency.Parent() != c { |
| 546 | if dependency.Parent() != c { |
| 547 | t.Fatalf("dependency chart %s has wrong parent, expected %s but got %s", dependency.Name(), c.Name(), dependency.Parent().Name()) |
| 548 | } |
| 549 | } |
| 550 | // recurse entire tree |
| 551 | validateDependencyTree(t, dependency) |
| 552 | } |
| 553 | } |
| 554 | |
| 555 | func TestChartWithDependencyAliasedTwiceAndDoublyReferencedSubDependency(t *testing.T) { |
| 556 | c := loadChart(t, "testdata/chart-with-dependency-aliased-twice") |
no test coverage detected
searching dependent graphs…