diff options
| author | EuAndreh <eu@euandre.org> | 2024-09-17 08:01:05 -0300 |
|---|---|---|
| committer | EuAndreh <eu@euandre.org> | 2024-10-20 07:39:33 -0300 |
| commit | ab1795aeb8f00b61c331ac77fdc1011ec14c5253 (patch) | |
| tree | 507b72b45f23f8a1bf1a1684a842fef51f1139a8 /tests/fuzz/total-order-check | |
| parent | Init Go project skeleton with golite init (diff) | |
| download | fiinha-ab1795aeb8f00b61c331ac77fdc1011ec14c5253.tar.gz fiinha-ab1795aeb8f00b61c331ac77fdc1011ec14c5253.tar.xz | |
Initial version: first implementation
Diffstat (limited to 'tests/fuzz/total-order-check')
| l--------- | tests/fuzz/total-order-check/main.go | 1 | ||||
| -rw-r--r-- | tests/fuzz/total-order-check/q.go | 35 |
2 files changed, 36 insertions, 0 deletions
diff --git a/tests/fuzz/total-order-check/main.go b/tests/fuzz/total-order-check/main.go new file mode 120000 index 0000000..f67563d --- /dev/null +++ b/tests/fuzz/total-order-check/main.go @@ -0,0 +1 @@ +../../main.go
\ No newline at end of file diff --git a/tests/fuzz/total-order-check/q.go b/tests/fuzz/total-order-check/q.go new file mode 100644 index 0000000..67af544 --- /dev/null +++ b/tests/fuzz/total-order-check/q.go @@ -0,0 +1,35 @@ +package q + +import ( + "os" + "testing" + "testing/internal/testdeps" +) + + + +func queries(f *testing.F) { + f.Fuzz(func(t *testing.T, n int) { + if n > 154 { + if n < 155 { + t.Errorf("Failed n: %v\n", n) + } + } + }) +} + + + +func MainTest() { + // FIXME: a consumer gets the messages in total order + fuzzTargets := []testing.InternalFuzzTarget{ + { "queries", queries }, + } + + deps := testdeps.TestDeps{} + tests := []testing.InternalTest {} + benchmarks := []testing.InternalBenchmark{} + examples := []testing.InternalExample {} + m := testing.MainStart(deps, tests, benchmarks, fuzzTargets, examples) + os.Exit(m.Run()) +} |
