File: go1_21_testing_quick.go

package info (click to toggle)
golang-github-traefik-yaegi 0.16.1-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 24,608 kB
  • sloc: sh: 457; makefile: 39
file content (41 lines) | stat: -rw-r--r-- 1,221 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
// Code generated by 'yaegi extract testing/quick'. DO NOT EDIT.

//go:build go1.21 && !go1.22
// +build go1.21,!go1.22

package stdlib

import (
	"math/rand"
	"reflect"
	"testing/quick"
)

func init() {
	Symbols["testing/quick/quick"] = map[string]reflect.Value{
		// function, constant and variable definitions
		"Check":      reflect.ValueOf(quick.Check),
		"CheckEqual": reflect.ValueOf(quick.CheckEqual),
		"Value":      reflect.ValueOf(quick.Value),

		// type definitions
		"CheckEqualError": reflect.ValueOf((*quick.CheckEqualError)(nil)),
		"CheckError":      reflect.ValueOf((*quick.CheckError)(nil)),
		"Config":          reflect.ValueOf((*quick.Config)(nil)),
		"Generator":       reflect.ValueOf((*quick.Generator)(nil)),
		"SetupError":      reflect.ValueOf((*quick.SetupError)(nil)),

		// interface wrapper definitions
		"_Generator": reflect.ValueOf((*_testing_quick_Generator)(nil)),
	}
}

// _testing_quick_Generator is an interface wrapper for Generator type
type _testing_quick_Generator struct {
	IValue    interface{}
	WGenerate func(rand *rand.Rand, size int) reflect.Value
}

func (W _testing_quick_Generator) Generate(rand *rand.Rand, size int) reflect.Value {
	return W.WGenerate(rand, size)
}