github.com/goplus/igop@v0.25.0/pkg/testing/quick/go121_export.go (about)

     1  // export by github.com/goplus/igop/cmd/qexp
     2  
     3  //go:build go1.21
     4  // +build go1.21
     5  
     6  package quick
     7  
     8  import (
     9  	q "testing/quick"
    10  
    11  	"reflect"
    12  
    13  	"github.com/goplus/igop"
    14  )
    15  
    16  func init() {
    17  	igop.RegisterPackage(&igop.Package{
    18  		Name: "quick",
    19  		Path: "testing/quick",
    20  		Deps: map[string]string{
    21  			"flag":      "flag",
    22  			"fmt":       "fmt",
    23  			"math":      "math",
    24  			"math/rand": "rand",
    25  			"reflect":   "reflect",
    26  			"strings":   "strings",
    27  			"time":      "time",
    28  		},
    29  		Interfaces: map[string]reflect.Type{
    30  			"Generator": reflect.TypeOf((*q.Generator)(nil)).Elem(),
    31  		},
    32  		NamedTypes: map[string]reflect.Type{
    33  			"CheckEqualError": reflect.TypeOf((*q.CheckEqualError)(nil)).Elem(),
    34  			"CheckError":      reflect.TypeOf((*q.CheckError)(nil)).Elem(),
    35  			"Config":          reflect.TypeOf((*q.Config)(nil)).Elem(),
    36  			"SetupError":      reflect.TypeOf((*q.SetupError)(nil)).Elem(),
    37  		},
    38  		AliasTypes: map[string]reflect.Type{},
    39  		Vars:       map[string]reflect.Value{},
    40  		Funcs: map[string]reflect.Value{
    41  			"Check":      reflect.ValueOf(q.Check),
    42  			"CheckEqual": reflect.ValueOf(q.CheckEqual),
    43  			"Value":      reflect.ValueOf(q.Value),
    44  		},
    45  		TypedConsts:   map[string]igop.TypedConst{},
    46  		UntypedConsts: map[string]igop.UntypedConst{},
    47  	})
    48  }