github.com/switchupcb/yaegi@v0.10.2/stdlib/go1_16_testing.go (about) 1 // Code generated by 'yaegi extract testing'. DO NOT EDIT. 2 3 // +build go1.16,!go1.17 4 5 package stdlib 6 7 import ( 8 "reflect" 9 "testing" 10 ) 11 12 func init() { 13 Symbols["testing/testing"] = map[string]reflect.Value{ 14 // function, constant and variable definitions 15 "AllocsPerRun": reflect.ValueOf(testing.AllocsPerRun), 16 "Benchmark": reflect.ValueOf(testing.Benchmark), 17 "CoverMode": reflect.ValueOf(testing.CoverMode), 18 "Coverage": reflect.ValueOf(testing.Coverage), 19 "Init": reflect.ValueOf(testing.Init), 20 "Main": reflect.ValueOf(testing.Main), 21 "MainStart": reflect.ValueOf(testing.MainStart), 22 "RegisterCover": reflect.ValueOf(testing.RegisterCover), 23 "RunBenchmarks": reflect.ValueOf(testing.RunBenchmarks), 24 "RunExamples": reflect.ValueOf(testing.RunExamples), 25 "RunTests": reflect.ValueOf(testing.RunTests), 26 "Short": reflect.ValueOf(testing.Short), 27 "Verbose": reflect.ValueOf(testing.Verbose), 28 29 // type definitions 30 "B": reflect.ValueOf((*testing.B)(nil)), 31 "BenchmarkResult": reflect.ValueOf((*testing.BenchmarkResult)(nil)), 32 "Cover": reflect.ValueOf((*testing.Cover)(nil)), 33 "CoverBlock": reflect.ValueOf((*testing.CoverBlock)(nil)), 34 "InternalBenchmark": reflect.ValueOf((*testing.InternalBenchmark)(nil)), 35 "InternalExample": reflect.ValueOf((*testing.InternalExample)(nil)), 36 "InternalTest": reflect.ValueOf((*testing.InternalTest)(nil)), 37 "M": reflect.ValueOf((*testing.M)(nil)), 38 "PB": reflect.ValueOf((*testing.PB)(nil)), 39 "T": reflect.ValueOf((*testing.T)(nil)), 40 "TB": reflect.ValueOf((*testing.TB)(nil)), 41 42 // interface wrapper definitions 43 "_TB": reflect.ValueOf((*_testing_TB)(nil)), 44 } 45 } 46 47 // _testing_TB is an interface wrapper for TB type 48 type _testing_TB struct { 49 IValue interface{} 50 WCleanup func(a0 func()) 51 WError func(args ...interface{}) 52 WErrorf func(format string, args ...interface{}) 53 WFail func() 54 WFailNow func() 55 WFailed func() bool 56 WFatal func(args ...interface{}) 57 WFatalf func(format string, args ...interface{}) 58 WHelper func() 59 WLog func(args ...interface{}) 60 WLogf func(format string, args ...interface{}) 61 WName func() string 62 WSkip func(args ...interface{}) 63 WSkipNow func() 64 WSkipf func(format string, args ...interface{}) 65 WSkipped func() bool 66 WTempDir func() string 67 } 68 69 func (W _testing_TB) Cleanup(a0 func()) { 70 W.WCleanup(a0) 71 } 72 func (W _testing_TB) Error(args ...interface{}) { 73 W.WError(args...) 74 } 75 func (W _testing_TB) Errorf(format string, args ...interface{}) { 76 W.WErrorf(format, args...) 77 } 78 func (W _testing_TB) Fail() { 79 W.WFail() 80 } 81 func (W _testing_TB) FailNow() { 82 W.WFailNow() 83 } 84 func (W _testing_TB) Failed() bool { 85 return W.WFailed() 86 } 87 func (W _testing_TB) Fatal(args ...interface{}) { 88 W.WFatal(args...) 89 } 90 func (W _testing_TB) Fatalf(format string, args ...interface{}) { 91 W.WFatalf(format, args...) 92 } 93 func (W _testing_TB) Helper() { 94 W.WHelper() 95 } 96 func (W _testing_TB) Log(args ...interface{}) { 97 W.WLog(args...) 98 } 99 func (W _testing_TB) Logf(format string, args ...interface{}) { 100 W.WLogf(format, args...) 101 } 102 func (W _testing_TB) Name() string { 103 return W.WName() 104 } 105 func (W _testing_TB) Skip(args ...interface{}) { 106 W.WSkip(args...) 107 } 108 func (W _testing_TB) SkipNow() { 109 W.WSkipNow() 110 } 111 func (W _testing_TB) Skipf(format string, args ...interface{}) { 112 W.WSkipf(format, args...) 113 } 114 func (W _testing_TB) Skipped() bool { 115 return W.WSkipped() 116 } 117 func (W _testing_TB) TempDir() string { 118 return W.WTempDir() 119 }