Skip to content

Commit

Permalink
add 'empty file' test case
Browse files Browse the repository at this point in the history
  • Loading branch information
DenKoren committed Oct 10, 2024
1 parent 6252c29 commit f3df68c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions table-converter/internal/converter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,12 @@ func TestConvert(t *testing.T) {
s1,v1,v2`),
expectedError: "sample name column \"S\" not found",
},

"empty source": {
config: Config{InputFileSeparator: ','},
input: noindent(``),
expectedError: "failed to read header",
},
}

runTest := func(conf testCase) func(t *testing.T) {
Expand Down

0 comments on commit f3df68c

Please sign in to comment.