Skip to content

Commit 7b1c7c6

Browse files
committed
Fixed the estimated cost for opt map.
1 parent c1e0443 commit 7b1c7c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/celcoststability_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2022,7 +2022,7 @@ func TestCelEstimatedCostStability(t *testing.T) {
20222022
"optional.of('a').hasValue()": 2,
20232023
"optional.of('a').or(optional.of('a')).hasValue()": 4, // or() is short-circuited
20242024
"optional.none().or(optional.of('a')).hasValue()": 4,
2025-
"optional.of('a').optMap(v, v == 'value').hasValue()": 17,
2025+
"optional.of('a').optMap(v, v == 'value').hasValue()": 18,
20262026
"self.obj.?field == optional.of('a')": uint64(1844674407370955268),
20272027
"self.obj.?absentField == optional.none()": uint64(1844674407370955268),
20282028
"self.obj.?field.orValue('v') == 'a'": 5,

0 commit comments

Comments
 (0)