github.com/goplus/gossa@v0.3.25/pkg/testing/quick/go115_export.go (about)

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