ocs_doc_api: make mock backends exhaustive over new Curve2Spec variants

Add Arc/Ellipse/Spline/Ray/XLine arms to the test + example mock add_curve
kind matching and the example curve_bounds, so the crate's unit tests and
examples compile against the Phase 2 curve families.
This commit is contained in:
Sebastian committed 2026-09-06 01:29:51 +02:00
1 parent 0e18867915
commit fabdeae8bf
2 files changed
+30

No files matched your search

+5
View File
@@ -56,6 +56,11 @@ impl DocApiBackend for MockBackend {
Curve2Spec::Circle { .. } => "Circle",
Curve2Spec::Polyline { .. } => "LwPolyline",
Curve2Spec::Point { .. } => "Point",
Curve2Spec::Arc { .. } => "Arc",
Curve2Spec::Ellipse { .. } => "Ellipse",
Curve2Spec::Spline { .. } => "Spline",
Curve2Spec::Ray { .. } => "Ray",
Curve2Spec::XLine { .. } => "XLine",
};
Ok(self.alloc(kind))
}