MCPcopy
hub / github.com/helm/helm / TestMetadata

Function TestMetadata

pkg/chart/v2/chart_test.go:92–108  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

90}
91
92func TestMetadata(t *testing.T) {
93 chrt := Chart{
94 Metadata: &Metadata{
95 Name: "foo.yaml",
96 AppVersion: "1.0.0",
97 APIVersion: "v2",
98 Version: "1.0.0",
99 Type: "application",
100 },
101 }
102
103 is := assert.New(t)
104
105 is.Equal("foo.yaml", chrt.Name())
106 is.Equal("1.0.0", chrt.AppVersion())
107 is.Equal(nil, chrt.Validate())
108}
109
110func TestIsRoot(t *testing.T) {
111 chrt1 := Chart{

Callers

nothing calls this directly

Calls 3

NameMethod · 0.95
AppVersionMethod · 0.95
ValidateMethod · 0.95

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…