Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bdon committed Sep 15, 2024
1 parent 1f3b51f commit e96521b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pmtiles/directory.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ func headerToJson(header HeaderV3) HeaderJson {
}

func headerToStringifiedJson(header HeaderV3) string {
s, _ := json.Marshal(headerToJson(header))
s, _ := json.MarshalIndent(headerToJson(header),"", " ")
return string(s)
}

Expand Down
4 changes: 0 additions & 4 deletions pmtiles/directory_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -199,10 +199,6 @@ func TestBuildRootsLeaves(t *testing.T) {
assert.Equal(t, 1, numLeaves)
}

func TestStringifiedCompression(t *testing.T) {

}

func TestStringifiedExtension(t *testing.T) {
assert.Equal(t, "", headerExt(HeaderV3{}))
assert.Equal(t, ".mvt", headerExt(HeaderV3{TileType: Mvt}))
Expand Down
1 change: 1 addition & 0 deletions pmtiles/show_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ func TestShowHeader(t *testing.T) {
var input map[string]interface{}
json.Unmarshal(b.Bytes(), &input)
assert.Equal(t, "mvt", input["TileType"])
assert.Equal(t, "gzip", input["TileCompression"])
}

func TestShowMetadata(t *testing.T) {
Expand Down

0 comments on commit e96521b

Please sign in to comment.