We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a494d2 commit d90488dCopy full SHA for d90488d
builtin/builtin_test.go
@@ -169,3 +169,19 @@ func TestBuiltin_types(t *testing.T) {
169
})
170
}
171
172
+
173
+func TestBuiltin_memory_limits(t *testing.T) {
174
+ tests := []struct {
175
+ input string
176
+ }{
177
+ {`repeat("\xc4<\xc4\xc4\xc4",10009999990)`},
178
+ }
179
180
+ for _, test := range tests {
181
+ t.Run(test.input, func(t *testing.T) {
182
+ _, err := expr.Eval(test.input, nil)
183
+ assert.Error(t, err)
184
+ assert.Contains(t, err.Error(), "memory budget exceeded")
185
+ })
186
187
+}
0 commit comments