mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-30 01:46:23 +00:00
Add PrintPluginEnv plugin.
This commit is contained in:
@@ -23,12 +23,21 @@ type testingHarness struct {
|
||||
}
|
||||
|
||||
func makeTestHarness(t *testing.T) testingHarness {
|
||||
return makeTestHarnessWithFs(t, filesys.MakeFsInMemory())
|
||||
}
|
||||
|
||||
func makeTestHarnessWithFs(
|
||||
t *testing.T, fSys filesys.FileSystem) testingHarness {
|
||||
return testingHarness{
|
||||
t: t,
|
||||
fSys: filesys.MakeFsInMemory(),
|
||||
fSys: fSys,
|
||||
}
|
||||
}
|
||||
|
||||
func (th testingHarness) GetT() *testing.T {
|
||||
return th.t
|
||||
}
|
||||
|
||||
func (th testingHarness) WriteK(path string, content string) {
|
||||
th.fSys.WriteFile(
|
||||
filepath.Join(
|
||||
|
||||
Reference in New Issue
Block a user