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

     1  // export by github.com/goplus/gossa/cmd/qexp
     2  
     3  //+build go1.16,!go1.17
     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  			"internal/sysinfo": "sysinfo",
    26  			"io":               "io",
    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  			"unicode/utf8":     "utf8",
    40  		},
    41  		Interfaces: map[string]reflect.Type{
    42  			"TB": reflect.TypeOf((*q.TB)(nil)).Elem(),
    43  		},
    44  		NamedTypes: map[string]gossa.NamedType{
    45  			"B":                 {reflect.TypeOf((*q.B)(nil)).Elem(), "", "ReportAllocs,ReportMetric,ResetTimer,Run,RunParallel,SetBytes,SetParallelism,StartTimer,StopTimer,add,doBench,launch,run,run1,runN,trimOutput"},
    46  			"BenchmarkResult":   {reflect.TypeOf((*q.BenchmarkResult)(nil)).Elem(), "AllocedBytesPerOp,AllocsPerOp,MemString,NsPerOp,String,mbPerSec", ""},
    47  			"Cover":             {reflect.TypeOf((*q.Cover)(nil)).Elem(), "", ""},
    48  			"CoverBlock":        {reflect.TypeOf((*q.CoverBlock)(nil)).Elem(), "", ""},
    49  			"InternalBenchmark": {reflect.TypeOf((*q.InternalBenchmark)(nil)).Elem(), "", ""},
    50  			"InternalExample":   {reflect.TypeOf((*q.InternalExample)(nil)).Elem(), "", "processRunResult"},
    51  			"InternalTest":      {reflect.TypeOf((*q.InternalTest)(nil)).Elem(), "", ""},
    52  			"M":                 {reflect.TypeOf((*q.M)(nil)).Elem(), "", "Run,after,before,startAlarm,stopAlarm,writeProfiles"},
    53  			"PB":                {reflect.TypeOf((*q.PB)(nil)).Elem(), "", "Next"},
    54  			"T":                 {reflect.TypeOf((*q.T)(nil)).Elem(), "", "Deadline,Parallel,Run,report"},
    55  		},
    56  		AliasTypes: map[string]reflect.Type{},
    57  		Vars:       map[string]reflect.Value{},
    58  		Funcs: map[string]reflect.Value{
    59  			"AllocsPerRun":  reflect.ValueOf(q.AllocsPerRun),
    60  			"Benchmark":     reflect.ValueOf(q.Benchmark),
    61  			"CoverMode":     reflect.ValueOf(q.CoverMode),
    62  			"Coverage":      reflect.ValueOf(q.Coverage),
    63  			"Init":          reflect.ValueOf(q.Init),
    64  			"Main":          reflect.ValueOf(q.Main),
    65  			"MainStart":     reflect.ValueOf(q.MainStart),
    66  			"RegisterCover": reflect.ValueOf(q.RegisterCover),
    67  			"RunBenchmarks": reflect.ValueOf(q.RunBenchmarks),
    68  			"RunExamples":   reflect.ValueOf(q.RunExamples),
    69  			"RunTests":      reflect.ValueOf(q.RunTests),
    70  			"Short":         reflect.ValueOf(q.Short),
    71  			"Verbose":       reflect.ValueOf(q.Verbose),
    72  		},
    73  		TypedConsts:   map[string]gossa.TypedConst{},
    74  		UntypedConsts: map[string]gossa.UntypedConst{},
    75  	})
    76  }