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> |
||
|---|---|---|
| .. | ||
| context.go | ||
| context_funcs.go | ||
| context_funcs_test.go | ||
| context_tmpl.go | ||
| context_tmpl_test.go | ||
| expand_secret_ref.go | ||
| expand_secret_ref_test.go | ||
| expand_secrets_mock.go | ||
| file_renderer.go | ||
| file_renderer_test.go | ||
| get_or_nil.go | ||
| get_or_nil_test.go | ||
| sprig_functions_test.go | ||
| text_renderer.go | ||
| text_renderer_test.go | ||