summaryrefslogtreecommitdiff
path: root/tests/fuzz/api/cracha.go
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2024-10-27 09:06:04 -0300
committerEuAndreh <eu@euandre.org>2024-10-27 09:06:04 -0300
commit962f811e46efc95c6050a6a49b47709603abaeb7 (patch)
tree340f9a1ed0b417a80dd89fc74a11170169a203de /tests/fuzz/api/cracha.go
parentsrc/gracha.go: New() - manage *sql.DB handle internally (diff)
downloadcracha-962f811e46efc95c6050a6a49b47709603abaeb7.tar.gz
cracha-962f811e46efc95c6050a6a49b47709603abaeb7.tar.xz
Rename gracha -> cracha
Diffstat (limited to 'tests/fuzz/api/cracha.go')
-rw-r--r--tests/fuzz/api/cracha.go35
1 files changed, 35 insertions, 0 deletions
diff --git a/tests/fuzz/api/cracha.go b/tests/fuzz/api/cracha.go
new file mode 100644
index 0000000..8775cd3
--- /dev/null
+++ b/tests/fuzz/api/cracha.go
@@ -0,0 +1,35 @@
+package cracha
+
+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())
+}