mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-31 15:25:57 +00:00
Fixed the estimated cost for opt map.
This commit is contained in:
parent
c1e0443232
commit
7b1c7c639e
@ -2022,7 +2022,7 @@ func TestCelEstimatedCostStability(t *testing.T) {
|
||||
"optional.of('a').hasValue()": 2,
|
||||
"optional.of('a').or(optional.of('a')).hasValue()": 4, // or() is short-circuited
|
||||
"optional.none().or(optional.of('a')).hasValue()": 4,
|
||||
"optional.of('a').optMap(v, v == 'value').hasValue()": 17,
|
||||
"optional.of('a').optMap(v, v == 'value').hasValue()": 18,
|
||||
"self.obj.?field == optional.of('a')": uint64(1844674407370955268),
|
||||
"self.obj.?absentField == optional.none()": uint64(1844674407370955268),
|
||||
"self.obj.?field.orValue('v') == 'a'": 5,
|
||||
|
Loading…
Reference in New Issue
Block a user