From 6c4eb1aa31b670d32910d4881b0801eac8265057 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Sun, 3 Nov 2024 10:15:49 -0300 Subject: Setup Makefile project structure with empty src/urubu.go source --- tests/fuzz/generated-parser-check/urubu.go | 35 ++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 tests/fuzz/generated-parser-check/urubu.go (limited to 'tests/fuzz/generated-parser-check/urubu.go') diff --git a/tests/fuzz/generated-parser-check/urubu.go b/tests/fuzz/generated-parser-check/urubu.go new file mode 100644 index 0000000..7ba1c2f --- /dev/null +++ b/tests/fuzz/generated-parser-check/urubu.go @@ -0,0 +1,35 @@ +package urubu + +import ( + "os" + "testing" + "testing/internal/testdeps" +) + + + +func api(f *testing.F) { + f.Fuzz(func(t *testing.T, n int) { + // FIXME + if n > 1 { + if n < 2 { + t.Errorf("Failed n: %v\n", n) + } + } + }) +} + + + +func MainTest() { + fuzzTargets := []testing.InternalFuzzTarget{ + { "api", api }, + } + + deps := testdeps.TestDeps{} + tests := []testing.InternalTest {} + benchmarks := []testing.InternalBenchmark{} + examples := []testing.InternalExample {} + m := testing.MainStart(deps, tests, benchmarks, fuzzTargets, examples) + os.Exit(m.Run()) +} -- cgit v1.2.3