MCPcopy Index your code
hub / github.com/helm/helm / TestFuncMap

Function TestFuncMap

pkg/engine/engine_test.go:76–92  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

74}
75
76func TestFuncMap(t *testing.T) {
77 fns := funcMap()
78 forbidden := []string{"env", "expandenv"}
79 for _, f := range forbidden {
80 if _, ok := fns[f]; ok {
81 t.Errorf("Forbidden function %s exists in FuncMap.", f)
82 }
83 }
84
85 // Test for Engine-specific template functions.
86 expect := []string{"include", "required", "tpl", "toYaml", "fromYaml", "toToml", "fromToml", "toJson", "fromJson", "lookup"}
87 for _, f := range expect {
88 if _, ok := fns[f]; !ok {
89 t.Errorf("Expected add-on function %q", f)
90 }
91 }
92}
93
94func TestRender(t *testing.T) {
95 modTime := time.Now()

Callers

nothing calls this directly

Calls 1

funcMapFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…