Apply feedback

Kubernetes-commit: 10c5bdd6a1a98222940c72e9c13ed0ccbb65322e
This commit is contained in:
Joe Betz 2025-05-05 15:03:11 -04:00 committed by Kubernetes Publisher
parent 7e75755a5a
commit 62514be921
1 changed files with 2 additions and 2 deletions

View File

@ -321,12 +321,12 @@ func TestToValue(t *testing.T) {
{
name: "struct: omitzero: zero valued: does not have scalar fields",
expression: "!has(c.s) && !has(c.i) && !has(c.b) && !has(c.f)",
activation: map[string]typedValue{"c": structOmitEmpty1},
activation: map[string]typedValue{"c": structOmitZero1},
},
{
name: "struct: omitzero: zero valued: does not have pointer to scalar fields",
expression: "!has(c.sp) && !has(c.ip) && !has(c.bp) && !has(c.fp)",
activation: map[string]typedValue{"c": structOmitEmpty1},
activation: map[string]typedValue{"c": structOmitZero1},
},
{
name: "struct: omitzero: non-zero valued: has struct field",