1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-09 01:16:55 +00:00
kyverno/cmd/cli/kubectl-kyverno/test/test_case.go

20 lines
325 B
Go
Raw Normal View History

package test
import (
"path/filepath"
"github.com/go-git/go-billy/v5"
testapi "github.com/kyverno/kyverno/cmd/cli/kubectl-kyverno/apis/test"
)
type TestCase struct {
Path string
Fs billy.Filesystem
Test *testapi.Test
Err error
}
func (tc TestCase) Dir() string {
return filepath.Clean(filepath.Dir(tc.Path))
}