mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-10 16:42:51 +00:00
Add function to check is YNode zero
This commit is contained in:
@@ -750,6 +750,10 @@ func TestRNodeIsNilOrEmpty(t *testing.T) {
|
||||
if NewListRNode("foo").IsNilOrEmpty() {
|
||||
t.Fatalf("non-empty list should not be empty")
|
||||
}
|
||||
|
||||
if !NewRNode(&Node{}).IsNilOrEmpty() {
|
||||
t.Fatalf("zero YNode should be empty")
|
||||
}
|
||||
}
|
||||
|
||||
const deploymentJSON = `
|
||||
|
||||
Reference in New Issue
Block a user