helmfile/pkg/tmpl
Eng Zer Jun ce3b81e2a1
test: use `T.Setenv` to set env vars in tests (#189)
This commit replaces `os.Setenv` with `t.Setenv` in tests. The
environment variable is automatically restored to its original value
when the test and all its subtests complete.

Reference: https://pkg.go.dev/testing#T.Setenv
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
2022-06-30 09:15:34 +09:00
..
context.go add readfile e2e test 2022-05-24 07:50:08 +08:00
context_funcs.go Introduce DISABLE_INSECURE_FEATURES to disable insecure command executions (#1) 2022-06-05 15:15:06 +09:00
context_funcs_test.go test: use `T.Setenv` to set env vars in tests (#189) 2022-06-30 09:15:34 +09:00
context_tmpl.go feat: Helmfile renders *.yaml.gotmpl in a K8s manifests/kustomization directory (#1745) 2021-04-06 14:22:34 +09:00
context_tmpl_test.go test: use `T.Setenv` to set env vars in tests (#189) 2022-06-30 09:15:34 +09:00
expand_secret_ref.go Rename module to github.com/helmfile/helmfile 2022-05-18 10:05:07 -04:00
expand_secret_ref_test.go add unittest for constants.go 2022-04-18 17:15:04 +08:00
expand_secrets_mock.go feat(template): added secret template function (#1221) 2020-04-25 21:10:02 +09:00
file_renderer.go remove ioutil usage in all project 2022-04-03 15:53:19 +08:00
file_renderer_test.go Rename module to github.com/helmfile/helmfile 2022-05-18 10:05:07 -04:00
get_or_nil.go Enable get() to be used with alias $.StateValues (#2081) 2022-02-09 09:18:46 +09:00
get_or_nil_test.go Enable get() to be used with alias $.StateValues (#2081) 2022-02-09 09:18:46 +09:00
sprig_functions_test.go Bump sprig to v3.1.0 and mergo 3.11 (#1456) 2020-09-04 09:58:54 +09:00
text_renderer.go chore: tidy up pkgs (#636) 2019-06-01 13:36:05 +09:00
text_renderer_test.go add unittest for text_renderer.go (#168) 2022-06-29 20:33:15 +09:00