Import locomotive availability descriptors with overlay context
This commit is contained in:
parent
8c7ff335cb
commit
87108f357b
21 changed files with 1154 additions and 27 deletions
|
|
@ -76,6 +76,8 @@ pub struct ExpectedRuntimeSummary {
|
|||
#[serde(default)]
|
||||
pub retired_train_count: Option<usize>,
|
||||
#[serde(default)]
|
||||
pub locomotive_catalog_count: Option<usize>,
|
||||
#[serde(default)]
|
||||
pub territory_count: Option<usize>,
|
||||
#[serde(default)]
|
||||
pub company_territory_track_count: Option<usize>,
|
||||
|
|
@ -136,6 +138,8 @@ pub struct ExpectedRuntimeSummary {
|
|||
#[serde(default)]
|
||||
pub packed_event_blocked_missing_train_territory_context_count: Option<usize>,
|
||||
#[serde(default)]
|
||||
pub packed_event_blocked_missing_locomotive_catalog_context_count: Option<usize>,
|
||||
#[serde(default)]
|
||||
pub packed_event_blocked_confiscation_variant_count: Option<usize>,
|
||||
#[serde(default)]
|
||||
pub packed_event_blocked_retire_train_variant_count: Option<usize>,
|
||||
|
|
@ -443,6 +447,14 @@ impl ExpectedRuntimeSummary {
|
|||
));
|
||||
}
|
||||
}
|
||||
if let Some(count) = self.locomotive_catalog_count {
|
||||
if actual.locomotive_catalog_count != count {
|
||||
mismatches.push(format!(
|
||||
"locomotive_catalog_count mismatch: expected {count}, got {}",
|
||||
actual.locomotive_catalog_count
|
||||
));
|
||||
}
|
||||
}
|
||||
if let Some(count) = self.territory_count {
|
||||
if actual.territory_count != count {
|
||||
mismatches.push(format!(
|
||||
|
|
@ -683,6 +695,14 @@ impl ExpectedRuntimeSummary {
|
|||
));
|
||||
}
|
||||
}
|
||||
if let Some(count) = self.packed_event_blocked_missing_locomotive_catalog_context_count {
|
||||
if actual.packed_event_blocked_missing_locomotive_catalog_context_count != count {
|
||||
mismatches.push(format!(
|
||||
"packed_event_blocked_missing_locomotive_catalog_context_count mismatch: expected {count}, got {}",
|
||||
actual.packed_event_blocked_missing_locomotive_catalog_context_count
|
||||
));
|
||||
}
|
||||
}
|
||||
if let Some(count) = self.packed_event_blocked_confiscation_variant_count {
|
||||
if actual.packed_event_blocked_confiscation_variant_count != count {
|
||||
mismatches.push(format!(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue