aboutsummaryrefslogtreecommitdiff
path: root/tests/fuzz/api/dedo.go
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2024-10-30 06:14:06 -0300
committerEuAndreh <eu@euandre.org>2024-10-30 06:14:06 -0300
commit9f1cc9ee4163942088687a8c4b7303771f617f9c (patch)
tree5a83048c599a723ff7f6aa95f06f2d641782f4bd /tests/fuzz/api/dedo.go
parent.gitignore: Include pattern for cgo (diff)
downloaddedo-9f1cc9ee4163942088687a8c4b7303771f617f9c.tar.gz
dedo-9f1cc9ee4163942088687a8c4b7303771f617f9c.tar.xz
Rename "gkv" -> "dedo"
Diffstat (limited to 'tests/fuzz/api/dedo.go')
-rw-r--r--tests/fuzz/api/dedo.go34
1 files changed, 34 insertions, 0 deletions
diff --git a/tests/fuzz/api/dedo.go b/tests/fuzz/api/dedo.go
new file mode 100644
index 0000000..552cd96
--- /dev/null
+++ b/tests/fuzz/api/dedo.go
@@ -0,0 +1,34 @@
+package dedo
+
+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())
+}