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