summaryrefslogtreecommitdiff
path: root/tests/fuzz/total-order-check/fiinha.go
blob: cb5aa616ff505536ed40d05b8088c56146a473fb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
package fiinha

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())
}