MCPcopy Create free account
hub / github.com/cel-expr/cel-go / FuzzParser

Function FuzzParser

fuzzing/fuzz_parser_test.go:21–31  ·  view source on GitHub ↗
(f *testing.F)

Source from the content-addressed store, hash-verified

19)
20
21func FuzzParser(f *testing.F) {
22 f.Add([]byte("1 + 2"))
23 f.Add([]byte("a.b.c == 'test'"))
24 f.Fuzz(func(t *testing.T, in []byte) {
25 env, err := getCELFuzzEnv()
26 if err != nil {
27 panic(err)
28 }
29 _, _ = env.Parse(string(in))
30 })
31}
32

Callers

nothing calls this directly

Calls 3

getCELFuzzEnvFunction · 0.85
AddMethod · 0.65
ParseMethod · 0.65

Tested by

no test coverage detected