Skip to content

Commit

Permalink
Add bad DBF file
Browse files Browse the repository at this point in the history
  • Loading branch information
AntoineGirard committed Jun 16, 2019
1 parent 9592334 commit 2186a11
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions mime_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,12 @@ func TestEmptyInput(t *testing.T) {
}
}

func TestBadBdfInput(t *testing.T) {
if m, _, _ := DetectFile("testdata/bad.dbf"); m != "application/octet-stream" {
t.Errorf("failed to detect bad DBF file")
}
}

func TestGenerateSupportedMimesFile(t *testing.T) {
f, err := os.OpenFile("supported_mimes.md", os.O_WRONLY|os.O_CREATE|os.O_TRUNC, 0644)
if err != nil {
Expand Down
Binary file added testdata/bad.dbf
Binary file not shown.

0 comments on commit 2186a11

Please sign in to comment.