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

Method test_many_tiles

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

Source from the content-addressed store, hash-verified

43 self.assertEqual(tileid_to_zxy(19078479), (12, 3423, 1763))
44
45 def test_many_tiles(self):
46 for z in range(0, 7):
47 for x in range(0, 1 << z):
48 for y in range(0, 1 << z):
49 i = zxy_to_tileid(z, x, y)
50 rz, rx, ry = tileid_to_zxy(i)
51 self.assertEqual(z, rz)
52 self.assertEqual(x, rx)
53 self.assertEqual(y, ry)
54
55 def test_tile_extremes(self):
56 for z in range(0,32):

Callers

nothing calls this directly

Calls 2

zxy_to_tileidFunction · 0.90
tileid_to_zxyFunction · 0.90

Tested by

no test coverage detected