Files
kubescape/internal/testutils/dir.go
Frederic BIDON dee3a10bac test(utils): introduced internal/testutils package to factorize testing utilities
Signed-off-by: Frederic BIDON <fredbi@yahoo.com>
Signed-off-by: Matthias Bertschy <matthias.bertschy@gmail.com>

Conflicts:
	core/pkg/hostsensorutils/hostsensordeploy_test.go
2023-03-24 11:15:25 +01:00

13 lines
160 B
Go

package testutils
import (
"path/filepath"
"runtime"
)
func CurrentDir() string {
_, filename, _, _ := runtime.Caller(1)
return filepath.Dir(filename)
}