()
| 390 | |
| 391 | #[test] |
| 392 | fn buffer_linestring_corridor() { |
| 393 | let line = Geometry::line_string(vec![[0.0, 0.0], [0.1, 0.0]]); |
| 394 | let buf = st_buffer(&line, 1000.0, 16); |
| 395 | if let Geometry::Polygon { coordinates } = &buf { |
| 396 | assert!(!coordinates[0].is_empty()); |
| 397 | // Should have more points than a simple rectangle due to end caps. |
| 398 | assert!(coordinates[0].len() > 10); |
| 399 | } else { |
| 400 | panic!("expected Polygon"); |
| 401 | } |
| 402 | } |
| 403 | |
| 404 | #[test] |
| 405 | fn buffer_polygon_expands() { |
nothing calls this directly
no test coverage detected