From 962f811e46efc95c6050a6a49b47709603abaeb7 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Sun, 27 Oct 2024 09:06:04 -0300 Subject: Rename gracha -> cracha --- tests/fuzz/api/cracha.go | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 tests/fuzz/api/cracha.go (limited to 'tests/fuzz/api/cracha.go') diff --git a/tests/fuzz/api/cracha.go b/tests/fuzz/api/cracha.go new file mode 100644 index 0000000..8775cd3 --- /dev/null +++ b/tests/fuzz/api/cracha.go @@ -0,0 +1,35 @@ +package cracha + +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