| 1 | // Code generated by 'yaegi extract testing'. DO NOT EDIT. |
| 2 | |
| 3 | //go:build go1.22 |
| 4 | // +build go1.22 |
| 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 | "Testing": reflect.ValueOf(testing.Testing), |
| 29 | "Verbose": reflect.ValueOf(testing.Verbose), |
| 30 | |
| 31 | // type definitions |
| 32 | "B": reflect.ValueOf((*testing.B)(nil)), |
| 33 | "BenchmarkResult": reflect.ValueOf((*testing.BenchmarkResult)(nil)), |
| 34 | "Cover": reflect.ValueOf((*testing.Cover)(nil)), |
| 35 | "CoverBlock": reflect.ValueOf((*testing.CoverBlock)(nil)), |
| 36 | "F": reflect.ValueOf((*testing.F)(nil)), |
| 37 | "InternalBenchmark": reflect.ValueOf((*testing.InternalBenchmark)(nil)), |
| 38 | "InternalExample": reflect.ValueOf((*testing.InternalExample)(nil)), |
| 39 | "InternalFuzzTarget": reflect.ValueOf((*testing.InternalFuzzTarget)(nil)), |
| 40 | "InternalTest": reflect.ValueOf((*testing.InternalTest)(nil)), |
| 41 | "M": reflect.ValueOf((*testing.M)(nil)), |
| 42 | "PB": reflect.ValueOf((*testing.PB)(nil)), |
| 43 | "T": reflect.ValueOf((*testing.T)(nil)), |
| 44 | "TB": reflect.ValueOf((*testing.TB)(nil)), |
| 45 | |
| 46 | // interface wrapper definitions |
| 47 | "_TB": reflect.ValueOf((*_testing_TB)(nil)), |
| 48 | } |
| 49 | } |
| 50 | |
| 51 | // _testing_TB is an interface wrapper for TB type |
| 52 | type _testing_TB struct { |
| 53 | IValue interface{} |
| 54 | WCleanup func(a0 func()) |
| 55 | WError func(args ...any) |
| 56 | WErrorf func(format string, args ...any) |
| 57 | WFail func() |
| 58 | WFailNow func() |
| 59 | WFailed func() bool |
| 60 | WFatal func(args ...any) |
| 61 | WFatalf func(format string, args ...any) |
| 62 | WHelper func() |
| 63 | WLog func(args ...any) |
| 64 | WLogf func(format string, args ...any) |
| 65 | WName func() string |
| 66 | WSetenv func(key string, value string) |
| 67 | WSkip func(args ...any) |
| 68 | WSkipNow func() |
| 69 | WSkipf func(format string, args ...any) |
| 70 | WSkipped func() bool |
| 71 | WTempDir func() string |
| 72 | } |
| 73 | |
| 74 | func (W _testing_TB) Cleanup(a0 func()) { W.WCleanup(a0) } |
| 75 | func (W _testing_TB) Error(args ...any) { W.WError(args...) } |
| 76 | func (W _testing_TB) Errorf(format string, args ...any) { W.WErrorf(format, args...) } |
| 77 | func (W _testing_TB) Fail() { W.WFail() } |
| 78 | func (W _testing_TB) FailNow() { W.WFailNow() } |
| 79 | func (W _testing_TB) Failed() bool { return W.WFailed() } |
| 80 | func (W _testing_TB) Fatal(args ...any) { W.WFatal(args...) } |
| 81 | func (W _testing_TB) Fatalf(format string, args ...any) { W.WFatalf(format, args...) } |
| 82 | func (W _testing_TB) Helper() { W.WHelper() } |
| 83 | func (W _testing_TB) Log(args ...any) { W.WLog(args...) } |
| 84 | func (W _testing_TB) Logf(format string, args ...any) { W.WLogf(format, args...) } |
| 85 | func (W _testing_TB) Name() string { return W.WName() } |
| 86 | func (W _testing_TB) Setenv(key string, value string) { W.WSetenv(key, value) } |
| 87 | func (W _testing_TB) Skip(args ...any) { W.WSkip(args...) } |
| 88 | func (W _testing_TB) SkipNow() { W.WSkipNow() } |
| 89 | func (W _testing_TB) Skipf(format string, args ...any) { W.WSkipf(format, args...) } |
| 90 | func (W _testing_TB) Skipped() bool { return W.WSkipped() } |
| 91 | func (W _testing_TB) TempDir() string { return W.WTempDir() } |