diff options
Diffstat (limited to 'tests/fuzz/api-check/papod.go')
-rw-r--r-- | tests/fuzz/api-check/papod.go | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/tests/fuzz/api-check/papod.go b/tests/fuzz/api-check/papod.go new file mode 100644 index 0000000..edab81c --- /dev/null +++ b/tests/fuzz/api-check/papod.go @@ -0,0 +1,34 @@ +package papod + +import ( + "os" + "testing" + "testing/internal/testdeps" +) + + + +func api(f *testing.F) { + f.Fuzz(func(t *testing.T, n int) { + 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()) +} |