summaryrefslogtreecommitdiff
path: root/tests/fuzz/count-leading-chars
diff options
context:
space:
mode:
Diffstat (limited to 'tests/fuzz/count-leading-chars')
-rw-r--r--tests/fuzz/count-leading-chars/gobang.go30
l---------tests/fuzz/count-leading-chars/main.go1
2 files changed, 31 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())
+}
diff --git a/tests/fuzz/count-leading-chars/main.go b/tests/fuzz/count-leading-chars/main.go
new file mode 120000
index 0000000..f67563d
--- /dev/null
+++ b/tests/fuzz/count-leading-chars/main.go
@@ -0,0 +1 @@
+../../main.go \ No newline at end of file