github.com/goplus/igop@v0.25.0/pkg/testing/go121_export.go (about)

     1  // export by github.com/goplus/igop/cmd/qexp
     2  
     3  //go:build go1.21
     4  // +build go1.21
     5  
     6  package testing
     7  
     8  import (
     9  	q "testing"
    10  
    11  	"reflect"
    12  
    13  	"github.com/goplus/igop"
    14  )
    15  
    16  func init() {
    17  	igop.RegisterPackage(&igop.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/goexperiment": "goexperiment",
    26  			"internal/race":         "race",
    27  			"internal/sysinfo":      "sysinfo",
    28  			"io":                    "io",
    29  			"math":                  "math",
    30  			"math/rand":             "rand",
    31  			"os":                    "os",
    32  			"path/filepath":         "filepath",
    33  			"reflect":               "reflect",
    34  			"runtime":               "runtime",
    35  			"runtime/debug":         "debug",
    36  			"runtime/trace":         "trace",
    37  			"sort":                  "sort",
    38  			"strconv":               "strconv",
    39  			"strings":               "strings",
    40  			"sync":                  "sync",
    41  			"sync/atomic":           "atomic",
    42  			"time":                  "time",
    43  			"unicode":               "unicode",
    44  			"unicode/utf8":          "utf8",
    45  		},
    46  		Interfaces: map[string]reflect.Type{
    47  			"TB": reflect.TypeOf((*q.TB)(nil)).Elem(),
    48  		},
    49  		NamedTypes: map[string]reflect.Type{
    50  			"B":                  reflect.TypeOf((*q.B)(nil)).Elem(),
    51  			"BenchmarkResult":    reflect.TypeOf((*q.BenchmarkResult)(nil)).Elem(),
    52  			"Cover":              reflect.TypeOf((*q.Cover)(nil)).Elem(),
    53  			"CoverBlock":         reflect.TypeOf((*q.CoverBlock)(nil)).Elem(),
    54  			"F":                  reflect.TypeOf((*q.F)(nil)).Elem(),
    55  			"InternalBenchmark":  reflect.TypeOf((*q.InternalBenchmark)(nil)).Elem(),
    56  			"InternalExample":    reflect.TypeOf((*q.InternalExample)(nil)).Elem(),
    57  			"InternalFuzzTarget": reflect.TypeOf((*q.InternalFuzzTarget)(nil)).Elem(),
    58  			"InternalTest":       reflect.TypeOf((*q.InternalTest)(nil)).Elem(),
    59  			"M":                  reflect.TypeOf((*q.M)(nil)).Elem(),
    60  			"PB":                 reflect.TypeOf((*q.PB)(nil)).Elem(),
    61  			"T":                  reflect.TypeOf((*q.T)(nil)).Elem(),
    62  		},
    63  		AliasTypes: map[string]reflect.Type{},
    64  		Vars:       map[string]reflect.Value{},
    65  		Funcs: map[string]reflect.Value{
    66  			"AllocsPerRun":  reflect.ValueOf(q.AllocsPerRun),
    67  			"Benchmark":     reflect.ValueOf(q.Benchmark),
    68  			"CoverMode":     reflect.ValueOf(q.CoverMode),
    69  			"Coverage":      reflect.ValueOf(q.Coverage),
    70  			"Init":          reflect.ValueOf(q.Init),
    71  			"Main":          reflect.ValueOf(q.Main),
    72  			"MainStart":     reflect.ValueOf(q.MainStart),
    73  			"RegisterCover": reflect.ValueOf(q.RegisterCover),
    74  			"RunBenchmarks": reflect.ValueOf(q.RunBenchmarks),
    75  			"RunExamples":   reflect.ValueOf(q.RunExamples),
    76  			"RunTests":      reflect.ValueOf(q.RunTests),
    77  			"Short":         reflect.ValueOf(q.Short),
    78  			"Testing":       reflect.ValueOf(q.Testing),
    79  			"Verbose":       reflect.ValueOf(q.Verbose),
    80  		},
    81  		TypedConsts:   map[string]igop.TypedConst{},
    82  		UntypedConsts: map[string]igop.UntypedConst{},
    83  	})
    84  }