More tests.

This commit is contained in:
jregan
2019-11-29 08:31:51 -08:00
parent 680a0812c6
commit a49a764705
5 changed files with 46 additions and 67 deletions

View File

@@ -1,7 +1,6 @@
// Copyright 2019 The Kubernetes Authors.
// SPDX-License-Identifier: Apache-2.0
// TODO: move most of the tests in the api/target package to this package.
package krusty_test
import (
@@ -11,12 +10,11 @@ import (
"sigs.k8s.io/kustomize/api/krusty"
)
// TODO: move most of the tests in api/internal/target
// to this package, as they are all high level tests and
// examples appropriate to this level and package.
// The following test isn't much more than a usage example;
// everything is actually tested down in api/internal/target.
func TestSomething(t *testing.T) {
// A simple usage example - just shows what happens when
// there are no files to read. For more substantial tests
// and examples, see other tests in this package.
// TODO: https://github.com/kubernetes-sigs/kustomize/issues/1862
func TestEmptyFileSystem(t *testing.T) {
fSys := filesys.MakeFsInMemory()
b := krusty.MakeKustomizer(fSys, krusty.MakeDefaultOptions())
_, err := b.Run("noSuchThing")