github.com/goplus/gossa@v0.3.25/pkg/testing/go115_export.go (about)

     1  // export by github.com/goplus/gossa/cmd/qexp
     2  
     3  //+build go1.15,!go1.16
     4  
     5  package testing
     6  
     7  import (
     8  	q "testing"
     9  
    10  	"reflect"
    11  
    12  	"github.com/goplus/gossa"
    13  )
    14  
    15  func init() {
    16  	gossa.RegisterPackage(&gossa.Package{
    17  		Name: "testing",
    18  		Path: "testing",
    19  		Deps: map[string]string{
    20  			"bytes":         "bytes",
    21  			"errors":        "errors",
    22  			"flag":          "flag",
    23  			"fmt":           "fmt",
    24  			"internal/race": "race",
    25  			"io":            "io",
    26  			"io/ioutil":     "ioutil",
    27  			"math":          "math",
    28  			"os":            "os",
    29  			"runtime":       "runtime",
    30  			"runtime/debug": "debug",
    31  			"runtime/trace": "trace",
    32  			"sort":          "sort",
    33  			"strconv":       "strconv",
    34  			"strings":       "strings",
    35  			"sync":          "sync",
    36  			"sync/atomic":   "atomic",
    37  			"time":          "time",
    38  			"unicode":       "unicode",
    39  		},
    40  		Interfaces: map[string]reflect.Type{
    41  			"TB": reflect.TypeOf((*q.TB)(nil)).Elem(),
    42  		},
    43  		NamedTypes: map[string]gossa.NamedType{
    44  			"B":                 {reflect.TypeOf((*q.B)(nil)).Elem(), "", "ReportAllocs,ReportMetric,ResetTimer,Run,RunParallel,SetBytes,SetParallelism,StartTimer,StopTimer,add,doBench,launch,run,run1,runN,trimOutput"},
    45  			"BenchmarkResult":   {reflect.TypeOf((*q.BenchmarkResult)(nil)).Elem(), "AllocedBytesPerOp,AllocsPerOp,MemString,NsPerOp,String,mbPerSec", ""},
    46  			"Cover":             {reflect.TypeOf((*q.Cover)(nil)).Elem(), "", ""},
    47  			"CoverBlock":        {reflect.TypeOf((*q.CoverBlock)(nil)).Elem(), "", ""},
    48  			"InternalBenchmark": {reflect.TypeOf((*q.InternalBenchmark)(nil)).Elem(), "", ""},
    49  			"InternalExample":   {reflect.TypeOf((*q.InternalExample)(nil)).Elem(), "", "processRunResult"},
    50  			"InternalTest":      {reflect.TypeOf((*q.InternalTest)(nil)).Elem(), "", ""},
    51  			"M":                 {reflect.TypeOf((*q.M)(nil)).Elem(), "", "Run,after,before,startAlarm,stopAlarm,writeProfiles"},
    52  			"PB":                {reflect.TypeOf((*q.PB)(nil)).Elem(), "", "Next"},
    53  			"T":                 {reflect.TypeOf((*q.T)(nil)).Elem(), "", "Deadline,Parallel,Run,report"},
    54  		},
    55  		AliasTypes: map[string]reflect.Type{},
    56  		Vars:       map[string]reflect.Value{},
    57  		Funcs: map[string]reflect.Value{
    58  			"AllocsPerRun":  reflect.ValueOf(q.AllocsPerRun),
    59  			"Benchmark":     reflect.ValueOf(q.Benchmark),
    60  			"CoverMode":     reflect.ValueOf(q.CoverMode),
    61  			"Coverage":      reflect.ValueOf(q.Coverage),
    62  			"Init":          reflect.ValueOf(q.Init),
    63  			"Main":          reflect.ValueOf(q.Main),
    64  			"MainStart":     reflect.ValueOf(q.MainStart),
    65  			"RegisterCover": reflect.ValueOf(q.RegisterCover),
    66  			"RunBenchmarks": reflect.ValueOf(q.RunBenchmarks),
    67  			"RunExamples":   reflect.ValueOf(q.RunExamples),
    68  			"RunTests":      reflect.ValueOf(q.RunTests),
    69  			"Short":         reflect.ValueOf(q.Short),
    70  			"Verbose":       reflect.ValueOf(q.Verbose),
    71  		},
    72  		TypedConsts:   map[string]gossa.TypedConst{},
    73  		UntypedConsts: map[string]gossa.UntypedConst{},
    74  	})
    75  }