From 17617bc1cad6fef6dc987b7f2d55cb1da63e4653 Mon Sep 17 00:00:00 2001 From: Joey Gibson Date: Fri, 22 Jan 2021 16:05:26 -0500 Subject: [PATCH] added sample data --- lib/column_definitions_test.go | 2 +- lib/lib_test.go | 12 ++++++------ test-data/sample | Bin 0 -> 103048 bytes 3 files changed, 7 insertions(+), 7 deletions(-) create mode 100644 test-data/sample diff --git a/lib/column_definitions_test.go b/lib/column_definitions_test.go index 80e5fd1..749cd2b 100644 --- a/lib/column_definitions_test.go +++ b/lib/column_definitions_test.go @@ -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) } diff --git a/lib/lib_test.go b/lib/lib_test.go index 0be38ce..19bacb8 100644 --- a/lib/lib_test.go +++ b/lib/lib_test.go @@ -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) } @@ -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) } @@ -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}, } @@ -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}, } diff --git a/test-data/sample b/test-data/sample new file mode 100644 index 0000000000000000000000000000000000000000..49795617df5ab3368b1bc3b7ac7155d34dd70e78 GIT binary patch literal 103048 zcmdU&37k#k|HqH9q_HPLmWin>^V47qX&aT4wCJZu31y8+ik}c8+BMlFWh*h1h_oP6 zNlBJ|Z9lXqt@@R;{Hvcb|Ig>1bMC#*x#!Ehj&bMvyykPyy=TsS?(;t1@AG|@^W1YU zZQJ>xtJx>wcEI)9%U*R`O0{sXD9y>T833kw#NOF0&=GO}B?Y>}1GEF+Dd zi&W9xgo@-my?h~;;BfD94^Hz9lmDM`*n3a*8iIkCw!<-Nrv;SzTc>N-Nvc$qw5a`Q4(~DuL~CxBx}AlF%ZEDeOk^_@w<7`7xYX zJU-db$p;;O<=1Gw!86h6xq_DHBNrv;>5$2#QHW}V54V*e{ta*sT`qc2)&jWNW0*ZgT{-6T!9`P!!otR>(G2V5<$bQHUcH+0r3xZTCEZ ztq#~)f`=j-5Y@$!`2t&Aux&wuO_5DwEO|m;s|PmvAf=VNc8bg)&$V4Kp)mM^fKOuGS!(#p12 zU^@kD1JO^Ww6ZM`*iHo-`y!N9wxn%J!nbmIbzdAx2VK*xc0$UrfJqj*LE89AO?F_K>M_-cC%2pt-oe8#djQ1(6Y_AGzXMyca*o@N3_L{(U zHrReeKbg|X_PW4!4%m)E9HF$btrytZfo&YxG)gPm8v=k-vpacWTUk8l|K~h z))jW+WeSR1n1;2MLQLVy6UBV}U^7Z9+fIS43)mil%_yyGp9pMMgY6i^3Q8;6rvh6y zunibtODo%F0^2oU8;*9H(#p0=V7nGzBSunz z*otI*2@2(#%(i>C!1hOhW%U6cC9>fo;_gcLmIXV*{gNZmfiu~@6xjNLDH9(}iEKxr zIAOLUaiUDNuRLtI-%SsF-?S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