MCPcopy Create free account
hub / github.com/ecto/muni / narrow_corridor

Function narrow_corridor

depot/dispatch/src/coverage.rs:329–339  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

327
328 #[test]
329 fn narrow_corridor() {
330 // Very narrow polygon: should produce 1-2 sweeps
331 let polygon = rect_polygon(10.0, 0.8);
332 let config = CoverageConfig {
333 tool_width: 1.0,
334 overlap_pct: 0.0,
335 swath_angle: Some(0.0),
336 };
337 let result = generate(&polygon, &config).unwrap();
338 assert!(result.num_sweeps >= 1 && result.num_sweeps <= 2);
339 }
340
341 #[test]
342 fn rejects_invalid_input() {

Callers

nothing calls this directly

Calls 2

rect_polygonFunction · 0.85
generateFunction · 0.85

Tested by

no test coverage detected