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

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