Skip to content

Commit

Permalink
Add test for invalid tile format, resolves #58
Browse files Browse the repository at this point in the history
  • Loading branch information
brendan-ward committed Nov 8, 2019
1 parent 3668ce5 commit 10eb619
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions mbtiles/mbtiles_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,10 @@ func Test_NewDB(t *testing.T) {
if err == nil {
t.Error("Invalid tileset did not raise validation error")
}

// invalid tile image format should raise error
_, err = mbtiles.NewDB("./testdata/invalid-tile-format.mbtiles")
if err == nil {
t.Error("Invalid tileset did not raise validation error")
}
}
Binary file added mbtiles/testdata/invalid-tile-format.mbtiles
Binary file not shown.

0 comments on commit 10eb619

Please sign in to comment.