feat(domain): R4.7 report-compare on the core: pdf::compare (feature cli, pure lines, runner over a Files trait), report-compare binary on the seed sheet, pnpm report:compare switched to it; O10 230 rows (158 exact, 72 declared A.3 closed lines), 11 cases as ledger targets, binary spawned; rust-check on cli
This commit is contained in:
1 parent
264c5fa3fc
commit
02ebf05195
17 files changed
+1598
-24
No files matched your search
@@ -33,6 +33,19 @@ pub enum SnapshotRejection {
|
||||
SheetMismatch,
|
||||
}
|
||||
|
||||
impl SnapshotRejection {
|
||||
/// The serde spelling, as the import outcome names it.
|
||||
pub fn as_str(self) -> &'static str {
|
||||
match self {
|
||||
Self::UnsupportedEnvelope => "unsupported_envelope",
|
||||
Self::Schema => "schema",
|
||||
Self::Caps => "caps",
|
||||
Self::Integrity => "integrity",
|
||||
Self::SheetMismatch => "sheet_mismatch",
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
// Build
|
||||
|
||||
|
||||
@@ -102,3 +102,13 @@ pub enum LateralSide {
|
||||
Left,
|
||||
Right,
|
||||
}
|
||||
|
||||
impl LateralSide {
|
||||
/// The serde spelling, as the report carries it.
|
||||
pub fn as_str(self) -> &'static str {
|
||||
match self {
|
||||
Self::Left => "left",
|
||||
Self::Right => "right",
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -21,6 +21,17 @@ pub enum SeverityV2 {
|
||||
Severe,
|
||||
}
|
||||
|
||||
impl SeverityV2 {
|
||||
/// The legacy spelling, as the v2 report carries it.
|
||||
pub fn as_str(self) -> &'static str {
|
||||
match self {
|
||||
Self::Legere => "légère",
|
||||
Self::Moderee => "modérée",
|
||||
Self::Severe => "sévère",
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// A vertebra of the legacy model: regions C, T, L, S, Cd only.
|
||||
#[derive(Debug, Clone, PartialEq, Deserialize)]
|
||||
pub struct VertebraV2 {
|
||||
|
||||
@@ -25,6 +25,17 @@ pub enum Severity {
|
||||
Severe,
|
||||
}
|
||||
|
||||
impl Severity {
|
||||
/// The serde spelling, as the report carries it.
|
||||
pub fn as_str(self) -> &'static str {
|
||||
match self {
|
||||
Self::Mild => "mild",
|
||||
Self::Moderate => "moderate",
|
||||
Self::Severe => "severe",
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// One vertebra: the sheet's region code and the 1-based index in that region.
|
||||
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
|
||||
#[cfg_attr(feature = "ts", derive(TS), ts(export))]
|
||||
|
||||
Reference in new issue
Block a user