MCPcopy Index your code
hub / github.com/databus23/helm-diff / TestPodNamespace

Function TestPodNamespace

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

Source from the content-addressed store, hash-verified

32}
33
34func TestPodNamespace(t *testing.T) {
35 spec, err := os.ReadFile("testdata/pod_namespace.yaml")
36 require.NoError(t, err)
37
38 require.Equal(t,
39 []string{"batcave, nginx, Pod (v1)"},
40 foundObjects(Parse(spec, "default", false)),
41 )
42}
43
44func TestPodHook(t *testing.T) {
45 spec, err := os.ReadFile("testdata/pod_hook.yaml")

Callers

nothing calls this directly

Calls 2

foundObjectsFunction · 0.85
ParseFunction · 0.85

Tested by

no test coverage detected