MCPcopy
hub / github.com/helm/helm / TestSaveChartNoRawData

Function TestSaveChartNoRawData

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

Source from the content-addressed store, hash-verified

65}
66
67func TestSaveChartNoRawData(t *testing.T) {
68 chrt := Chart{
69 Raw: []*common.File{
70 {
71 Name: "fhqwhgads.yaml",
72 ModTime: time.Now(),
73 Data: []byte("Everybody to the Limit"),
74 },
75 },
76 }
77
78 is := assert.New(t)
79 data, err := json.Marshal(chrt)
80 if err != nil {
81 t.Fatal(err)
82 }
83
84 res := &Chart{}
85 if err := json.Unmarshal(data, res); err != nil {
86 t.Fatal(err)
87 }
88
89 is.Equal([]*common.File(nil), res.Raw)
90}
91
92func TestMetadata(t *testing.T) {
93 chrt := Chart{

Callers

nothing calls this directly

Calls 2

NowMethod · 0.80
FatalMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…