mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-07 03:03:59 +00:00
Add more tests for optional.
This commit is contained in:
parent
8a3d0d68a2
commit
e1ab6073ab
@ -2029,6 +2029,9 @@ func TestCelEstimatedCostStability(t *testing.T) {
|
|||||||
"self.m[?'k'] == optional.of('v')": uint64(1844674407370955268),
|
"self.m[?'k'] == optional.of('v')": uint64(1844674407370955268),
|
||||||
"self.l[?0] == optional.of('a')": uint64(1844674407370955268),
|
"self.l[?0] == optional.of('a')": uint64(1844674407370955268),
|
||||||
"optional.ofNonZeroValue(1).hasValue()": 2,
|
"optional.ofNonZeroValue(1).hasValue()": 2,
|
||||||
|
"optional.of([1, 2, 3, 4, 5]).optMap(v, v.size()).hasValue()": 38,
|
||||||
|
"optional.of('abcdefgabcdefg').optMap(v, v.size()).hasValue()": 18,
|
||||||
|
"self.l[?0].optMap(v, v == 'a').hasValue()": 22,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{name: "quantity",
|
{name: "quantity",
|
||||||
|
Loading…
Reference in New Issue
Block a user