MCPcopy Create free account
hub / github.com/databus23/helm-diff / TestBaseNameAnnotation

Function TestBaseNameAnnotation

manifest/parse_test.go:133–141  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

131}
132
133func TestBaseNameAnnotation(t *testing.T) {
134 spec, err := os.ReadFile("testdata/secret_immutable.yaml")
135 require.NoError(t, err)
136
137 require.Equal(t,
138 []string{"default, bat-secret, Secret (v1)"},
139 foundObjects(Parse(spec, "default", false)),
140 )
141}
142
143func TestParseObject(t *testing.T) {
144 for _, tt := range []struct {

Callers

nothing calls this directly

Calls 2

foundObjectsFunction · 0.85
ParseFunction · 0.85

Tested by

no test coverage detected