File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 8
8
9
9
const testdataDir = "testdata"
10
10
11
- // Testdata returns a file's bytes based on the path relative to the testdata
11
+ // testdata returns a file's bytes based on the path relative to the testdata
12
12
// directory. It fails the test if the testdata file can not be read.
13
- func Testdata (t * testing.T , relativePath string ) []byte {
13
+ func testdata (t * testing.T , relativePath string ) []byte {
14
14
path := filepath .Join (testdataDir , relativePath )
15
15
16
16
b , err := ioutil .ReadFile (path )
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ func closeServer() {
42
42
// relative to the testdata directory (the go tool ignores directories named
43
43
// "testdata" in test packages: https://golang.org/cmd/go/#hdr-Test_packages).
44
44
func WillReturnTestdata (t * testing.T , relativePath string , s int ) {
45
- responseBody = Testdata (t , relativePath )
45
+ responseBody = testdata (t , relativePath )
46
46
status = s
47
47
}
48
48
You can’t perform that action at this time.
0 commit comments