Home | History | Annotate | Download | only in quick

Lines Matching full:reflect

13 	"reflect"
23 Generate(rand *rand.Rand, size int) reflect.Value
54 func Value(t reflect.Type, rand *rand.Rand) (value reflect.Value, ok bool) {
55 if m, ok := reflect.Zero(t).Interface().(Generator); ok {
59 v := reflect.New(t).Elem()
61 case reflect.Bool:
63 case reflect.Float32:
65 case reflect.Float64:
67 case reflect.Complex64:
69 case reflect.Complex128:
71 case reflect.Int16:
73 case reflect.Int32:
75 case reflect.Int64:
77 case reflect.Int8:
79 case reflect.Int:
81 case reflect.Uint16:
83 case reflect.Uint32:
85 case reflect.Uint64:
87 case reflect.Uint8:
89 case reflect.Uint:
91 case reflect.Uintptr:
93 case reflect.Map:
95 v.Set(reflect.MakeMap(concrete))
100 return reflect.Value{}, false
104 case reflect.Ptr:
106 v.Set(reflect.Zero(concrete)) // Generate nil pointer.
110 return reflect.Value{}, false
112 v.Set(reflect.New(concrete.Elem()))
115 case reflect.Slice:
117 v.Set(reflect.MakeSlice(concrete, numElems, numElems))
121 return reflect.Value{}, false
125 case reflect.Array:
129 return reflect.Value{}, false
133 case reflect.String:
140 case reflect.Struct:
144 return reflect.Value{}, false
149 return reflect.Value{}, false
167 // reflect.Values that are congruent with the arguments to the function
170 Values func([]reflect.Value, *rand.Rand)
255 if fType.Out(0).Kind() != reflect.Bool {
260 arguments := make([]reflect.Value, fType.NumIn())
304 arguments := make([]reflect.Value, xType.NumIn())
317 if !reflect.DeepEqual(xOut, yOut) {
328 func arbitraryValues(args []reflect.Value, f reflect.Type, config *Config, rand *rand.Rand) (err error) {
346 func functionAndType(f interface{}) (v reflect.Value, t reflect.Type, ok bool) {
347 v = reflect.ValueOf(f)
348 ok = v.Kind() == reflect.Func
356 func toInterfaces(values []reflect.Value) []interface{} {