From 149d33fa6adb9be835d1c1404346d82124dda454 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Sat, 19 Oct 2024 18:11:33 -0300 Subject: Setup conventional functional tests, fuzz targets and benchmarks --- tests/fuzz/from-string/guuid.go | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 tests/fuzz/from-string/guuid.go (limited to 'tests/fuzz/from-string/guuid.go') diff --git a/tests/fuzz/from-string/guuid.go b/tests/fuzz/from-string/guuid.go new file mode 100644 index 0000000..8971cbb --- /dev/null +++ b/tests/fuzz/from-string/guuid.go @@ -0,0 +1,30 @@ +package guuid + +import ( + "os" + "testing" + "testing/internal/testdeps" +) + + + +func fn(f *testing.F) { + f.Fuzz(func(t *testing.T, str string) { + FromString(str) + }) +} + + + +func MainTest() { + fuzzTargets := []testing.InternalFuzzTarget{ + { "fn", fn }, + } + + deps := testdeps.TestDeps{} + tests := []testing.InternalTest {} + benchmarks := []testing.InternalBenchmark{} + examples := []testing.InternalExample {} + m := testing.MainStart(deps, tests, benchmarks, fuzzTargets, examples) + os.Exit(m.Run()) +} -- cgit v1.2.3