MCPcopy
hub / github.com/protomaps/PMTiles / test_invalid_tiles

Method test_invalid_tiles

python/pmtiles/test/test_tile.py:67–75  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

65 self.assertEqual(br,(z,dim,dim))
66
67 def test_invalid_tiles(self):
68 with self.assertRaises(Exception) as context:
69 tileid_to_zxy(18446744073709551615)
70
71 with self.assertRaises(Exception) as context:
72 zxy_to_tileid(32,0,0)
73
74 with self.assertRaises(Exception) as context:
75 zxy_to_tileid(0,1,1)
76
77class TestFindTile(unittest.TestCase):
78 def test_find_tile_missing(self):

Callers

nothing calls this directly

Calls 2

tileid_to_zxyFunction · 0.90
zxy_to_tileidFunction · 0.90

Tested by

no test coverage detected