github.com/goplus/gossa@v0.3.25/cmd/internal/test/flagdefs.go (about)

     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  type Type int
    10  
    11  const (
    12  	Bool Type = iota
    13  	Int
    14  	String
    15  	Duration
    16  )
    17  
    18  // passFlagToTest contains the flags that should be forwarded to
    19  // the test binary with the prefix "test.".
    20  var passFlagToTest = map[string]Type{
    21  	"bench":                String,
    22  	"benchmem":             Bool,
    23  	"benchtime":            Duration,
    24  	"blockprofile":         String,
    25  	"blockprofilerate":     Int,
    26  	"count":                Int,
    27  	"coverprofile":         String,
    28  	"cpu":                  String,
    29  	"cpuprofile":           String,
    30  	"failfast":             Bool,
    31  	"list":                 String,
    32  	"memprofile":           String,
    33  	"memprofilerate":       Int,
    34  	"mutexprofile":         String,
    35  	"mutexprofilefraction": Int,
    36  	"outputdir":            String,
    37  	"parallel":             Int,
    38  	"run":                  String,
    39  	"short":                Bool,
    40  	"timeout":              Duration,
    41  	"trace":                String,
    42  	"v":                    Bool,
    43  }