mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-06 16:06:56 +00:00
* refactor: introduce userinfo package in the cli Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> * fix Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> * refactor: introduce api package in cli Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> * fix Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> --------- Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
19 lines
309 B
Go
19 lines
309 B
Go
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.Dir(tc.Path)
|
|
}
|