diff options
author | EuAndreh <eu@euandre.org> | 2024-10-18 17:54:26 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2024-10-20 03:36:18 -0300 |
commit | f00c41fd4e6af8cd0db80c118a3bb4abef09604e (patch) | |
tree | 46ad14d55cfe591691cf214076e8aea81edbfe18 /tests/fuzz/api/acudego.go | |
parent | .gitignore: Remove .so (diff) | |
download | golite-f00c41fd4e6af8cd0db80c118a3bb4abef09604e.tar.gz golite-f00c41fd4e6af8cd0db80c118a3bb4abef09604e.tar.xz |
Shoehorn project into default golang skeleton structure
Diffstat (limited to 'tests/fuzz/api/acudego.go')
-rw-r--r-- | tests/fuzz/api/acudego.go | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/tests/fuzz/api/acudego.go b/tests/fuzz/api/acudego.go new file mode 100644 index 0000000..7f8e3a0 --- /dev/null +++ b/tests/fuzz/api/acudego.go @@ -0,0 +1,34 @@ +package acudego + +import ( + "os" + "testing" + "testing/internal/testdeps" +) + + + +func FuzzAPI(f *testing.F) { + f.Add(123) + f.Fuzz(func(t *testing.T, n int) { + // FIXME + if n == 1234 { + t.Errorf("Failed n: %q\n", n) + } + }) +} + + + +func MainTest() { + fuzzTargets := []testing.InternalFuzzTarget{ + { "FuzzAPI", FuzzAPI }, + } + + deps := testdeps.TestDeps{} + tests := []testing.InternalTest {} + benchmarks := []testing.InternalBenchmark{} + examples := []testing.InternalExample {} + m := testing.MainStart(deps, tests, benchmarks, fuzzTargets, examples) + os.Exit(m.Run()) +} |