diff options
author | EuAndreh <eu@euandre.org> | 2024-10-26 13:24:52 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2024-10-26 13:24:52 -0300 |
commit | c7e2dea6f6148d0972c0b1f2795910c9a24ac27a (patch) | |
tree | 9dbcd8906cb8421b08cf3d91ead7e43b30077231 /tests/fuzz/api/gkv.go | |
parent | Move code to src/ and tests/ (diff) | |
download | dedo-c7e2dea6f6148d0972c0b1f2795910c9a24ac27a.tar.gz dedo-c7e2dea6f6148d0972c0b1f2795910c9a24ac27a.tar.xz |
Normalize structure following other projects
Diffstat (limited to 'tests/fuzz/api/gkv.go')
-rw-r--r-- | tests/fuzz/api/gkv.go | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/tests/fuzz/api/gkv.go b/tests/fuzz/api/gkv.go new file mode 100644 index 0000000..f7f0309 --- /dev/null +++ b/tests/fuzz/api/gkv.go @@ -0,0 +1,34 @@ +package gkv + +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()) +} |