Skip to content

Commit a4a1779

Browse files
committed
Removing testdata package
1 parent 1ff91b2 commit a4a1779

2 files changed

Lines changed: 2 additions & 16 deletions

File tree

opts_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ import (
66
"errors"
77
"fmt"
88
"io"
9+
"os"
910
"reflect"
1011
"strconv"
1112
"strings"
1213
"testing"
1314

1415
"github.com/xo/tblfmt/internal"
15-
"github.com/xo/tblfmt/testdata"
1616
)
1717

1818
func TestFromMap(t *testing.T) {
@@ -72,7 +72,7 @@ func TestFromMapFormats(t *testing.T) {
7272
} {
7373
t.Run(typ, func(t *testing.T) {
7474
t.Parallel()
75-
z, err := testdata.Testdata.ReadFile(typ + ".gz")
75+
z, err := os.ReadFile("testdata/" + typ + ".gz")
7676
if err != nil {
7777
t.Fatalf("expected no error, got: %v", err)
7878
}

testdata/testdata.go

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)