aboutsummaryrefslogtreecommitdiff
path: root/tests/fuzz/api/golite.go
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2024-10-20 20:30:37 -0300
committerEuAndreh <eu@euandre.org>2024-10-20 20:33:48 -0300
commitdcd536348e52686758ec76f68dc0157804f763f9 (patch)
tree0335e1a7a1d95b9c0386319504b567809237c24a /tests/fuzz/api/golite.go
parentShoehorn project into default golang skeleton structure (diff)
downloadgolite-dcd536348e52686758ec76f68dc0157804f763f9.tar.gz
golite-dcd536348e52686758ec76f68dc0157804f763f9.tar.xz
Revert c3a3cf9d7aed9b3c48acbe31fd48f2c27549a570
Diffstat (limited to 'tests/fuzz/api/golite.go')
-rw-r--r--tests/fuzz/api/golite.go34
1 files changed, 34 insertions, 0 deletions
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())
+}