aboutsummaryrefslogtreecommitdiff
path: root/tests/fuzz/api-check/tre.go
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2024-11-03 13:47:45 -0300
committerEuAndreh <eu@euandre.org>2024-11-03 13:48:49 -0300
commitd3b6a7691f643ef6e38e0f0ce912d0b322681b3d (patch)
treef62444289fc894471a28f2825361f6194a945d1b /tests/fuzz/api-check/tre.go
parentUpdate CHANGELOG (diff)
downloadtre-d3b6a7691f643ef6e38e0f0ce912d0b322681b3d.tar.gz
tre-d3b6a7691f643ef6e38e0f0ce912d0b322681b3d.tar.xz
Setup Makefile project structure with empty src/tre.go source
Diffstat (limited to 'tests/fuzz/api-check/tre.go')
-rw-r--r--tests/fuzz/api-check/tre.go35
1 files changed, 35 insertions, 0 deletions
diff --git a/tests/fuzz/api-check/tre.go b/tests/fuzz/api-check/tre.go
new file mode 100644
index 0000000..4bd6fa7
--- /dev/null
+++ b/tests/fuzz/api-check/tre.go
@@ -0,0 +1,35 @@
+package tre
+
+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())
+}