Like Prometheus, but for logs.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
loki/pkg/logql/syntax/fuzz_test.go

21 lines
366 B

//go:build gofuzz
// +build gofuzz
package syntax
import (
"io/ioutil"
"os"
"testing"
"github.com/stretchr/testify/require"
)
const fuzzTestCaseEnvName = "FUZZ_TESTCASE_PATH"
func Test_Fuzz(t *testing.T) {
fuzzTestPath := os.Getenv(fuzzTestCaseEnvName)
data, err := ioutil.ReadFile(fuzzTestPath)
require.NoError(t, err)
_, _ = ParseExpr(string(data))
}