MCPcopy
hub / github.com/helm/helm / verifyDependenciesLock

Function verifyDependenciesLock

pkg/chart/v2/loader/load_test.go:689–710  ·  view source on GitHub ↗
(t *testing.T, c *chart.Chart)

Source from the content-addressed store, hash-verified

687}
688
689func 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
712func verifyFrobnitz(t *testing.T, c *chart.Chart) {
713 t.Helper()

Callers 7

TestLoadDirFunction · 0.70
TestLoadDirWithSymlinkFunction · 0.70
TestLoadDirWithUTFBOMFunction · 0.70
TestLoadV1Function · 0.70
TestLoadFileV1Function · 0.70
TestLoadV2WithReqsFunction · 0.70

Calls 1

HelperMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…