From 89ddc1482d21d776baa2e9eebe2d3da84610c1d7 Mon Sep 17 00:00:00 2001 From: Anton Medvedev Date: Sat, 16 Sep 2023 20:32:32 +0200 Subject: [PATCH] Delete fuzz_coverage_test.go --- test/fuzz/fuzz_coverage_test.go | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 test/fuzz/fuzz_coverage_test.go diff --git a/test/fuzz/fuzz_coverage_test.go b/test/fuzz/fuzz_coverage_test.go deleted file mode 100644 index 0f858e5db..000000000 --- a/test/fuzz/fuzz_coverage_test.go +++ /dev/null @@ -1,30 +0,0 @@ -package fuzz_test - -import ( - _ "embed" - "github.com/antonmedv/expr/test/fuzz" - "github.com/stretchr/testify/require" - "strings" - "testing" - - "github.com/antonmedv/expr" -) - -//go:embed fuzz_corpus.txt -var fuzzCorpus string - -func TestFuzzExpr_Coverage(t *testing.T) { - inputs := strings.Split(strings.TrimSpace(fuzzCorpus), "\n") - - var env = fuzz.NewEnv() - - for _, code := range inputs { - t.Run(code, func(t *testing.T) { - program, err := expr.Compile(code, expr.Env(env)) - require.NoError(t, err) - - _, err = expr.Run(program, env) - require.NoError(t, err) - }) - } -}