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

Function TestList

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

Source from the content-addressed store, hash-verified

82}
83
84func TestList(t *testing.T) {
85 spec, err := os.ReadFile("testdata/list.yaml")
86 require.NoError(t, err)
87
88 require.Equal(t,
89 []string{
90 "default, prometheus-operator-example, PrometheusRule (monitoring.coreos.com)",
91 "default, prometheus-operator-example2, PrometheusRule (monitoring.coreos.com)",
92 },
93 foundObjects(Parse(spec, "default", false)),
94 )
95}
96
97func TestConfigMapList(t *testing.T) {
98 spec, err := os.ReadFile("testdata/configmaplist_v1.yaml")

Callers

nothing calls this directly

Calls 2

foundObjectsFunction · 0.85
ParseFunction · 0.85

Tested by

no test coverage detected