Skip to content

Commit

Permalink
added sample data
Browse files Browse the repository at this point in the history
  • Loading branch information
joeygibson committed Jan 22, 2021
1 parent 7b3c937 commit 17617bc
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion lib/column_definitions_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
)

func TestReadColumnDefinitions(t *testing.T) {
file, err := os.Open("../private-data/sample")
file, err := os.Open("../test-data/sample")
if err != nil {
t.Fatal("couldn't open file", err)
}
Expand Down
12 changes: 6 additions & 6 deletions lib/lib_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
)

func TestReadSignature(t *testing.T) {
file, err := os.Open("../private-data/sample")
file, err := os.Open("../test-data/sample")
if err != nil {
t.Fatal("couldn't open file", err)
}
Expand All @@ -25,7 +25,7 @@ func TestReadSignature(t *testing.T) {
}

func TestCount(t *testing.T) {
file, err := os.Open("../private-data/sample")
file, err := os.Open("../test-data/sample")
if err != nil {
t.Fatal("couldn't open file", err)
}
Expand Down Expand Up @@ -59,11 +59,11 @@ func TestHead(t *testing.T) {
wantErr bool
}{
{name: "all rows",
args: args{file: "../private-data/sample", countFlag: false, headRows: 475, tailRows: 0},
args: args{file: "../test-data/sample", countFlag: false, headRows: 475, tailRows: 0},
want: 102728,
wantErr: false},
{name: "5 rows",
args: args{file: "../private-data/sample", countFlag: false, headRows: 5, tailRows: 0},
args: args{file: "../test-data/sample", countFlag: false, headRows: 5, tailRows: 0},
want: 1102,
wantErr: false},
}
Expand Down Expand Up @@ -107,11 +107,11 @@ func TestTail(t *testing.T) {
wantErr bool
}{
{name: "all rows",
args: args{file: "../private-data/sample", countFlag: false, headRows: 0, tailRows: 475},
args: args{file: "../test-data/sample", countFlag: false, headRows: 0, tailRows: 475},
want: 102728,
wantErr: false},
{name: "5 rows",
args: args{file: "../private-data/sample", countFlag: false, headRows: 0, tailRows: 5},
args: args{file: "../test-data/sample", countFlag: false, headRows: 0, tailRows: 5},
want: 1070,
wantErr: false},
}
Expand Down
Binary file added test-data/sample
Binary file not shown.

0 comments on commit 17617bc

Please sign in to comment.