MCPcopy
hub / github.com/databus23/helm-diff / TestPodHook

Function TestPodHook

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

Source from the content-addressed store, hash-verified

42}
43
44func TestPodHook(t *testing.T) {
45 spec, err := os.ReadFile("testdata/pod_hook.yaml")
46 require.NoError(t, err)
47
48 require.Equal(t,
49 []string{"default, nginx, Pod (v1)"},
50 foundObjects(Parse(spec, "default", false)),
51 )
52
53 require.Equal(t,
54 []string{"default, nginx, Pod (v1)"},
55 foundObjects(Parse(spec, "default", false, "test-success")),
56 )
57
58 require.Equal(t,
59 []string{},
60 foundObjects(Parse(spec, "default", false, "test")),
61 )
62}
63
64func TestDeployV1(t *testing.T) {
65 spec, err := os.ReadFile("testdata/deploy_v1.yaml")

Callers

nothing calls this directly

Calls 2

foundObjectsFunction · 0.85
ParseFunction · 0.85

Tested by

no test coverage detected