Source file src/cmd/go/internal/test/flagdefs.go

     1  // Copyright 2019 The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  // Code generated by genflags.go — DO NOT EDIT.
     6  
     7  package test
     8  
     9  // passFlagToTest contains the flags that should be forwarded to
    10  // the test binary with the prefix "test.".
    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