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

     1  // export by github.com/goplus/gossa/cmd/qexp
     2  
     3  //go:build go1.18
     4  // +build 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  			"path/filepath":    "filepath",
    32  			"reflect":          "reflect",
    33  			"runtime":          "runtime",
    34  			"runtime/debug":    "debug",
    35  			"runtime/trace":    "trace",
    36  			"sort":             "sort",
    37  			"strconv":          "strconv",
    38  			"strings":          "strings",
    39  			"sync":             "sync",
    40  			"sync/atomic":      "atomic",
    41  			"time":             "time",
    42  			"unicode":          "unicode",
    43  			"unicode/utf8":     "utf8",
    44  		},
    45  		Interfaces: map[string]reflect.Type{
    46  			"TB": reflect.TypeOf((*q.TB)(nil)).Elem(),
    47  		},
    48  		NamedTypes: map[string]gossa.NamedType{
    49  			"B":                  {reflect.TypeOf((*q.B)(nil)).Elem(), "", "ReportAllocs,ReportMetric,ResetTimer,Run,RunParallel,SetBytes,SetParallelism,StartTimer,StopTimer,add,doBench,launch,run,run1,runN,trimOutput"},
    50  			"BenchmarkResult":    {reflect.TypeOf((*q.BenchmarkResult)(nil)).Elem(), "AllocedBytesPerOp,AllocsPerOp,MemString,NsPerOp,String,mbPerSec", ""},
    51  			"Cover":              {reflect.TypeOf((*q.Cover)(nil)).Elem(), "", ""},
    52  			"CoverBlock":         {reflect.TypeOf((*q.CoverBlock)(nil)).Elem(), "", ""},
    53  			"F":                  {reflect.TypeOf((*q.F)(nil)).Elem(), "", "Add,Fail,Fuzz,Helper,Skipped,report"},
    54  			"InternalBenchmark":  {reflect.TypeOf((*q.InternalBenchmark)(nil)).Elem(), "", ""},
    55  			"InternalExample":    {reflect.TypeOf((*q.InternalExample)(nil)).Elem(), "", "processRunResult"},
    56  			"InternalFuzzTarget": {reflect.TypeOf((*q.InternalFuzzTarget)(nil)).Elem(), "", ""},
    57  			"InternalTest":       {reflect.TypeOf((*q.InternalTest)(nil)).Elem(), "", ""},
    58  			"M":                  {reflect.TypeOf((*q.M)(nil)).Elem(), "", "Run,after,before,startAlarm,stopAlarm,writeProfiles"},
    59  			"PB":                 {reflect.TypeOf((*q.PB)(nil)).Elem(), "", "Next"},
    60  			"T":                  {reflect.TypeOf((*q.T)(nil)).Elem(), "", "Deadline,Parallel,Run,Setenv,report"},
    61  		},
    62  		AliasTypes: map[string]reflect.Type{},
    63  		Vars:       map[string]reflect.Value{},
    64  		Funcs: map[string]reflect.Value{
    65  			"AllocsPerRun":  reflect.ValueOf(q.AllocsPerRun),
    66  			"Benchmark":     reflect.ValueOf(q.Benchmark),
    67  			"CoverMode":     reflect.ValueOf(q.CoverMode),
    68  			"Coverage":      reflect.ValueOf(q.Coverage),
    69  			"Init":          reflect.ValueOf(q.Init),
    70  			"Main":          reflect.ValueOf(q.Main),
    71  			"MainStart":     reflect.ValueOf(q.MainStart),
    72  			"RegisterCover": reflect.ValueOf(q.RegisterCover),
    73  			"RunBenchmarks": reflect.ValueOf(q.RunBenchmarks),
    74  			"RunExamples":   reflect.ValueOf(q.RunExamples),
    75  			"RunTests":      reflect.ValueOf(q.RunTests),
    76  			"Short":         reflect.ValueOf(q.Short),
    77  			"Verbose":       reflect.ValueOf(q.Verbose),
    78  		},
    79  		TypedConsts:   map[string]gossa.TypedConst{},
    80  		UntypedConsts: map[string]gossa.UntypedConst{},
    81  	})
    82  }