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

Function TestPod

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

Source from the content-addressed store, hash-verified

22}
23
24func TestPod(t *testing.T) {
25 spec, err := os.ReadFile("testdata/pod.yaml")
26 require.NoError(t, err)
27
28 require.Equal(t,
29 []string{"default, nginx, Pod (v1)"},
30 foundObjects(Parse(spec, "default", false)),
31 )
32}
33
34func TestPodNamespace(t *testing.T) {
35 spec, err := os.ReadFile("testdata/pod_namespace.yaml")

Callers

nothing calls this directly

Calls 2

foundObjectsFunction · 0.85
ParseFunction · 0.85

Tested by

no test coverage detected