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

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