Skip to content

Commit d090eb0

Browse files
committed
Unexport Testdata: it has no usages outside messagebirdtest
1 parent cb0249e commit d090eb0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

internal/messagebirdtest/helper.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ import (
88

99
const testdataDir = "testdata"
1010

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
1212
// 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 {
1414
path := filepath.Join(testdataDir, relativePath)
1515

1616
b, err := ioutil.ReadFile(path)

internal/messagebirdtest/test_server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ func closeServer() {
4242
// relative to the testdata directory (the go tool ignores directories named
4343
// "testdata" in test packages: https://golang.org/cmd/go/#hdr-Test_packages).
4444
func WillReturnTestdata(t *testing.T, relativePath string, s int) {
45-
responseBody = Testdata(t, relativePath)
45+
responseBody = testdata(t, relativePath)
4646
status = s
4747
}
4848

0 commit comments

Comments
 (0)