MCPcopy Create free account
hub / github.com/shapely/shapely / test_init

Function test_init

shapely/tests/test_strtree.py:69–72  ·  view source on GitHub ↗
(geometry, count, hits)

Source from the content-addressed store, hash-verified

67 ],
68)
69def test_init(geometry, count, hits):
70 tree = STRtree(geometry)
71 assert len(tree) == count
72 assert tree.query(box(0, 0, 100, 100)).size == hits
73
74
75def test_init_with_invalid_geometry():

Callers

nothing calls this directly

Calls 3

queryMethod · 0.95
STRtreeClass · 0.90
boxFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…