Make more high level build methods public.

This commit is contained in:
monopole
2021-02-12 10:53:22 -08:00
parent 66b7c5968b
commit b553997447
12 changed files with 152 additions and 130 deletions

View File

@@ -16,9 +16,8 @@ import (
// For more substantial tests and examples,
// see other tests in this package.
func TestEmptyFileSystem(t *testing.T) {
fSys := filesys.MakeFsInMemory()
b := krusty.MakeKustomizer(fSys, krusty.MakeDefaultOptions())
_, err := b.Run("noSuchThing")
b := krusty.MakeKustomizer(krusty.MakeDefaultOptions())
_, err := b.Run(filesys.MakeFsInMemory(), "noSuchThing")
if err == nil {
t.Fatalf("expected error")
}