mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-07-17 01:39:06 +00:00
More tests.
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user