Build: update package for fuzzer after refactoring (#5776)

* Update the package name to reflect the moved package after refactoring

Signed-off-by: Ed Welch <edward.welch@grafana.com>

* also include makefile

Signed-off-by: Ed Welch <edward.welch@grafana.com>
pull/5715/head^2
Ed Welch 4 years ago committed by GitHub
parent e15a03b5e5
commit f313a9ff4f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      Makefile
  2. 2
      pkg/logql/syntax/fuzz.go
  3. 2
      pkg/logql/syntax/fuzz_test.go

@ -640,7 +640,7 @@ endif
# this will run the fuzzing using /tmp/testcase and save benchmark locally.
test-fuzz:
$(GOTEST) -timeout 30s -tags dev,gofuzz -cpuprofile cpu.prof -memprofile mem.prof \
-run ^Test_Fuzz$$ github.com/grafana/loki/pkg/logql -v -count=1 -timeout=0s
-run ^Test_Fuzz$$ github.com/grafana/loki/pkg/logql/syntax -v -count=1 -timeout=0s
format:
find . $(DONT_FIND) -name '*.pb.go' -prune -o -name '*.y.go' -prune -o -name '*.rl.go' -prune -o \

@ -1,7 +1,7 @@
//go:build gofuzz
// +build gofuzz
package logql
package syntax
func FuzzParseExpr(data []byte) int {
_, err := ParseExpr(string(data))

@ -1,7 +1,7 @@
//go:build gofuzz
// +build gofuzz
package logql
package syntax
import (
"io/ioutil"

Loading…
Cancel
Save