diff options
Diffstat (limited to 'tests/fuzz/count-leading-chars/gobang.go')
-rw-r--r-- | tests/fuzz/count-leading-chars/gobang.go | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/tests/fuzz/count-leading-chars/gobang.go b/tests/fuzz/count-leading-chars/gobang.go new file mode 100644 index 0000000..5b9736d --- /dev/null +++ b/tests/fuzz/count-leading-chars/gobang.go @@ -0,0 +1,30 @@ +package gobang + +import ( + "os" + "testing" + "testing/internal/testdeps" +) + + + +func fn(f *testing.F) { + f.Fuzz(func(t *testing.T, s string, c byte) { + countLeadingChar(s, c) + }) +} + + + +func MainTest() { + fuzzTargets := []testing.InternalFuzzTarget{ + { "count-leading-char", fn }, + } + + deps := testdeps.TestDeps{} + tests := []testing.InternalTest {} + benchmarks := []testing.InternalBenchmark{} + examples := []testing.InternalExample {} + m := testing.MainStart(deps, tests, benchmarks, fuzzTargets, examples) + os.Exit(m.Run()) +} |