MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / geometry_collection_validates_all

Function geometry_collection_validates_all

nodedb-spatial/src/validate.rs:281–292  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

279
280 #[test]
281 fn geometry_collection_validates_all() {
282 let gc = Geometry::GeometryCollection {
283 geometries: vec![
284 Geometry::point(0.0, 0.0),
285 Geometry::LineString {
286 coordinates: vec![[0.0, 0.0]],
287 }, // invalid
288 ],
289 };
290 let issues = validate_geometry(&gc);
291 assert!(!issues.is_empty());
292 }
293}

Callers

nothing calls this directly

Calls 1

validate_geometryFunction · 0.85

Tested by

no test coverage detected