mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-07-17 09:49:13 +00:00
Simplify plugin tests.
This commit is contained in:
@@ -20,10 +20,10 @@ type FakeLoader struct {
|
||||
|
||||
// NewFakeLoader returns a Loader that uses a fake filesystem.
|
||||
// The loader will be restricted to root only.
|
||||
// The initialDir argument should be an absolute file path.
|
||||
func NewFakeLoader(initialDir string) FakeLoader {
|
||||
// The root argument should be an absolute file path.
|
||||
func NewFakeLoader(root string) FakeLoader {
|
||||
return NewFakeLoaderWithRestrictor(
|
||||
loader.RestrictionRootOnly, filesys.MakeFsInMemory(), initialDir)
|
||||
loader.RestrictionRootOnly, filesys.MakeFsInMemory(), root)
|
||||
}
|
||||
|
||||
// NewFakeLoaderWithRestrictor returns a Loader that
|
||||
|
||||
Reference in New Issue
Block a user