blob: 0d6db03ed50ceab62d2fc5c7866dead35f030b62 (
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
|
package main
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 main() {
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())
}
|