summaryrefslogtreecommitdiff
path: root/tests/fuzz/api-check/q.go
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2024-09-17 08:01:05 -0300
committerEuAndreh <eu@euandre.org>2024-10-20 07:39:33 -0300
commitab1795aeb8f00b61c331ac77fdc1011ec14c5253 (patch)
tree507b72b45f23f8a1bf1a1684a842fef51f1139a8 /tests/fuzz/api-check/q.go
parentInit Go project skeleton with golite init (diff)
downloadfiinha-ab1795aeb8f00b61c331ac77fdc1011ec14c5253.tar.gz
fiinha-ab1795aeb8f00b61c331ac77fdc1011ec14c5253.tar.xz
Initial version: first implementation
Diffstat (limited to 'tests/fuzz/api-check/q.go')
-rw-r--r--tests/fuzz/api-check/q.go35
1 files changed, 35 insertions, 0 deletions
diff --git a/tests/fuzz/api-check/q.go b/tests/fuzz/api-check/q.go
new file mode 100644
index 0000000..f8b2ab4
--- /dev/null
+++ b/tests/fuzz/api-check/q.go
@@ -0,0 +1,35 @@
+package q
+
+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())
+}