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