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

Function too_few_points

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

Source from the content-addressed store, hash-verified

217
218 #[test]
219 fn too_few_points() {
220 let geom = Geometry::polygon(vec![vec![[0.0, 0.0], [10.0, 0.0], [10.0, 10.0]]]);
221 let issues = validate_geometry(&geom);
222 assert!(issues.iter().any(|i| i.contains("minimum is 4")));
223 }
224
225 #[test]
226 fn self_intersecting_ring() {

Callers

nothing calls this directly

Calls 1

validate_geometryFunction · 0.85

Tested by

no test coverage detected