| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
package stdlib |
| 7 |
|
| 8 |
import ( |
| 9 |
"math/rand" |
| 10 |
"reflect" |
| 11 |
"testing/quick" |
| 12 |
) |
| 13 |
|
| 14 |
func init() { |
| 15 |
Symbols["testing/quick/quick"] = map[string]reflect.Value{ |
| 16 |
|
| 17 |
"Check": reflect.ValueOf(quick.Check), |
| 18 |
"CheckEqual": reflect.ValueOf(quick.CheckEqual), |
| 19 |
"Value": reflect.ValueOf(quick.Value), |
| 20 |
|
| 21 |
|
| 22 |
"CheckEqualError": reflect.ValueOf((*quick.CheckEqualError)(nil)), |
| 23 |
"CheckError": reflect.ValueOf((*quick.CheckError)(nil)), |
| 24 |
"Config": reflect.ValueOf((*quick.Config)(nil)), |
| 25 |
"Generator": reflect.ValueOf((*quick.Generator)(nil)), |
| 26 |
"SetupError": reflect.ValueOf((*quick.SetupError)(nil)), |
| 27 |
|
| 28 |
|
| 29 |
"_Generator": reflect.ValueOf((*_testing_quick_Generator)(nil)), |
| 30 |
} |
| 31 |
} |
| 32 |
|
| 33 |
|
| 34 |
type _testing_quick_Generator struct { |
| 35 |
IValue interface{} |
| 36 |
WGenerate func(rand *rand.Rand, size int) reflect.Value |
| 37 |
} |
| 38 |
|
| 39 |
func (W _testing_quick_Generator) Generate(rand *rand.Rand, size int) reflect.Value { |
| 40 |
return W.WGenerate(rand, size) |
| 41 |
} |