github.com/gmemcc/yaegi@v0.12.1-0.20221128122509-aa99124c5d16/stdlib/go1_16_testing_quick.go (about) 1 // Code generated by 'yaegi extract testing/quick'. DO NOT EDIT. 2 3 // +build go1.16,!go1.17 4 5 package stdlib 6 7 import ( 8 "math/rand" 9 "reflect" 10 "testing/quick" 11 ) 12 13 func init() { 14 Symbols["testing/quick/quick"] = map[string]reflect.Value{ 15 // function, constant and variable definitions 16 "Check": reflect.ValueOf(quick.Check), 17 "CheckEqual": reflect.ValueOf(quick.CheckEqual), 18 "Value": reflect.ValueOf(quick.Value), 19 20 // type definitions 21 "CheckEqualError": reflect.ValueOf((*quick.CheckEqualError)(nil)), 22 "CheckError": reflect.ValueOf((*quick.CheckError)(nil)), 23 "Config": reflect.ValueOf((*quick.Config)(nil)), 24 "Generator": reflect.ValueOf((*quick.Generator)(nil)), 25 "SetupError": reflect.ValueOf((*quick.SetupError)(nil)), 26 27 // interface wrapper definitions 28 "_Generator": reflect.ValueOf((*_testing_quick_Generator)(nil)), 29 } 30 } 31 32 // _testing_quick_Generator is an interface wrapper for Generator type 33 type _testing_quick_Generator struct { 34 IValue interface{} 35 WGenerate func(rand *rand.Rand, size int) reflect.Value 36 } 37 38 func (W _testing_quick_Generator) Generate(rand *rand.Rand, size int) reflect.Value { 39 return W.WGenerate(rand, size) 40 }