1
2
3
4
5
6
7 package test
8
9
10
11 var passFlagToTest = map[string]bool{
12 "bench": true,
13 "benchmem": true,
14 "benchtime": true,
15 "blockprofile": true,
16 "blockprofilerate": true,
17 "count": true,
18 "coverprofile": true,
19 "cpu": true,
20 "cpuprofile": true,
21 "failfast": true,
22 "fuzz": true,
23 "fuzzminimizetime": true,
24 "fuzztime": true,
25 "list": true,
26 "memprofile": true,
27 "memprofilerate": true,
28 "mutexprofile": true,
29 "mutexprofilefraction": true,
30 "outputdir": true,
31 "parallel": true,
32 "run": true,
33 "short": true,
34 "shuffle": true,
35 "timeout": true,
36 "trace": true,
37 "v": true,
38 }
39
40 var passAnalyzersToVet = map[string]bool{
41 "asmdecl": true,
42 "assign": true,
43 "atomic": true,
44 "bool": true,
45 "bools": true,
46 "buildtag": true,
47 "buildtags": true,
48 "cgocall": true,
49 "composites": true,
50 "copylocks": true,
51 "errorsas": true,
52 "framepointer": true,
53 "httpresponse": true,
54 "ifaceassert": true,
55 "loopclosure": true,
56 "lostcancel": true,
57 "methods": true,
58 "nilfunc": true,
59 "printf": true,
60 "rangeloops": true,
61 "shift": true,
62 "sigchanyzer": true,
63 "stdmethods": true,
64 "stringintconv": true,
65 "structtag": true,
66 "testinggoroutine": true,
67 "tests": true,
68 "unmarshal": true,
69 "unreachable": true,
70 "unsafeptr": true,
71 "unusedresult": true,
72 }
73
View as plain text