github.com/HaHadaxigua/yaegi@v1.0.1/stdlib/go1_17_testing_quick.go (about)

     1  // Code generated by 'yaegi extract testing/quick'. DO NOT EDIT.
     2  
     3  //go:build go1.17
     4  // +build go1.17
     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  		// function, constant and variable definitions
    17  		"Check":      reflect.ValueOf(quick.Check),
    18  		"CheckEqual": reflect.ValueOf(quick.CheckEqual),
    19  		"Value":      reflect.ValueOf(quick.Value),
    20  
    21  		// type definitions
    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  		// interface wrapper definitions
    29  		"_Generator": reflect.ValueOf((*_testing_quick_Generator)(nil)),
    30  	}
    31  }
    32  
    33  // _testing_quick_Generator is an interface wrapper for Generator type
    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  }