Skip to content

Commit 980869d

Browse files
authored
Merge pull request #2491 from AdamKorcz/fuzz5
add fuzz test for yqutil
2 parents 486b90b + 4d44ece commit 980869d

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

pkg/yqutil/fuzz_test.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
package yqutil
2+
3+
import (
4+
"testing"
5+
)
6+
7+
func FuzzEvaluateExpression(f *testing.F) {
8+
f.Fuzz(func(_ *testing.T, expression string, content []byte) {
9+
_, _ = EvaluateExpression(expression, content)
10+
})
11+
}

0 commit comments

Comments
 (0)