1
// Copyright 2011 The Go Authors. All rights reserved.
2
// Use of this source code is governed by a BSD-style
3
// license that can be found in the LICENSE file
14
addTestCases(reflectTests(), reflectFn)
17
func reflectTests() []testCase {
20
names, _ := filepath.Glob("testdata/reflect.*.in")
21
for _, in := range names {
22
out := in[:len(in)-len(".in")] + ".out"
23
inb, err := ioutil.ReadFile(in)
27
outb, err := ioutil.ReadFile(out)
31
tests = append(tests, testCase{Name: in, In: string(inb), Out: string(outb)})