package ensure
import "helm.sh/helm/v3/internal/test/ensure"
Index ¶
Functions ¶
func HelmHome ¶
HelmHome sets up a Helm Home in a temp dir.
func TempFile ¶
TempFile ensures a temp file for unit testing purposes.
It returns the path to the directory (to which you will still need to join the filename)
The returned directory is automatically removed when the test and all its subtests complete.
tempdir := TempFile(t, "foo", []byte("bar")) filename := filepath.Join(tempdir, "foo")
Source Files ¶
ensure.go
- Version
- v3.17.3 (latest)
- Published
- Apr 9, 2025
- Platform
- linux/amd64
- Imports
- 5 packages
- Last checked
- 1 month ago –
Tools for package owners.