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  	"fullpath":             true,
    23  	"fuzz":                 true,
    24  	"fuzzminimizetime":     true,
    25  	"fuzztime":             true,
    26  	"list":                 true,
    27  	"memprofile":           true,
    28  	"memprofilerate":       true,
    29  	"mutexprofile":         true,
    30  	"mutexprofilefraction": true,
    31  	"outputdir":            true,
    32  	"parallel":             true,
    33  	"run":                  true,
    34  	"short":                true,
    35  	"shuffle":              true,
    36  	"skip":                 true,
    37  	"timeout":              true,
    38  	"trace":                true,
    39  	"v":                    true,
    40  }
    41  
    42  var passAnalyzersToVet = map[string]bool{
    43  	"appends":          true,
    44  	"asmdecl":          true,
    45  	"assign":           true,
    46  	"atomic":           true,
    47  	"bool":             true,
    48  	"bools":            true,
    49  	"buildtag":         true,
    50  	"buildtags":        true,
    51  	"cgocall":          true,
    52  	"composites":       true,
    53  	"copylocks":        true,
    54  	"defers":           true,
    55  	"directive":        true,
    56  	"errorsas":         true,
    57  	"framepointer":     true,
    58  	"httpresponse":     true,
    59  	"ifaceassert":      true,
    60  	"loopclosure":      true,
    61  	"lostcancel":       true,
    62  	"methods":          true,
    63  	"nilfunc":          true,
    64  	"printf":           true,
    65  	"rangeloops":       true,
    66  	"shift":            true,
    67  	"sigchanyzer":      true,
    68  	"slog":             true,
    69  	"stdmethods":       true,
    70  	"stdversion":       true,
    71  	"stringintconv":    true,
    72  	"structtag":        true,
    73  	"testinggoroutine": true,
    74  	"tests":            true,
    75  	"timeformat":       true,
    76  	"unmarshal":        true,
    77  	"unreachable":      true,
    78  	"unsafeptr":        true,
    79  	"unusedresult":     true,
    80  }
    81  

View as plain text