(t *testing.T, c *chart.Chart)
| 687 | } |
| 688 | |
| 689 | func verifyDependenciesLock(t *testing.T, c *chart.Chart) { |
| 690 | t.Helper() |
| 691 | if len(c.Metadata.Dependencies) != 2 { |
| 692 | t.Errorf("Expected 2 dependencies, got %d", len(c.Metadata.Dependencies)) |
| 693 | } |
| 694 | tests := []*chart.Dependency{ |
| 695 | {Name: "alpine", Version: "0.1.0", Repository: "https://example.com/charts"}, |
| 696 | {Name: "mariner", Version: "4.3.2", Repository: "https://example.com/charts"}, |
| 697 | } |
| 698 | for i, tt := range tests { |
| 699 | d := c.Metadata.Dependencies[i] |
| 700 | if d.Name != tt.Name { |
| 701 | t.Errorf("Expected dependency named %q, got %q", tt.Name, d.Name) |
| 702 | } |
| 703 | if d.Version != tt.Version { |
| 704 | t.Errorf("Expected dependency named %q to have version %q, got %q", tt.Name, tt.Version, d.Version) |
| 705 | } |
| 706 | if d.Repository != tt.Repository { |
| 707 | t.Errorf("Expected dependency named %q to have repository %q, got %q", tt.Name, tt.Repository, d.Repository) |
| 708 | } |
| 709 | } |
| 710 | } |
| 711 | |
| 712 | func verifyFrobnitz(t *testing.T, c *chart.Chart) { |
| 713 | t.Helper() |
no test coverage detected
searching dependent graphs…