From dcd536348e52686758ec76f68dc0157804f763f9 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Sun, 20 Oct 2024 20:30:37 -0300 Subject: Revert c3a3cf9d7aed9b3c48acbe31fd48f2c27549a570 --- tests/fuzz/api/golite.go | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 tests/fuzz/api/golite.go (limited to 'tests/fuzz/api/golite.go') diff --git a/tests/fuzz/api/golite.go b/tests/fuzz/api/golite.go new file mode 100644 index 0000000..1c86d04 --- /dev/null +++ b/tests/fuzz/api/golite.go @@ -0,0 +1,34 @@ +package golite + +import ( + "os" + "testing" + "testing/internal/testdeps" +) + + + +func FuzzAPI(f *testing.F) { + f.Add(123) + f.Fuzz(func(t *testing.T, n int) { + // FIXME + if n == 1234 { + t.Errorf("Failed n: %q\n", n) + } + }) +} + + + +func MainTest() { + fuzzTargets := []testing.InternalFuzzTarget{ + { "FuzzAPI", FuzzAPI }, + } + + 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