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

Function clockwise_exterior_warned

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

Source from the content-addressed store, hash-verified

265
266 #[test]
267 fn clockwise_exterior_warned() {
268 // Clockwise exterior ring.
269 let geom = Geometry::polygon(vec![vec![
270 [0.0, 0.0],
271 [0.0, 10.0],
272 [10.0, 10.0],
273 [10.0, 0.0],
274 [0.0, 0.0],
275 ]]);
276 let issues = validate_geometry(&geom);
277 assert!(issues.iter().any(|i| i.contains("clockwise")));
278 }
279
280 #[test]
281 fn geometry_collection_validates_all() {

Callers

nothing calls this directly

Calls 1

validate_geometryFunction · 0.85

Tested by

no test coverage detected