Execute descriptor 3 as territory access rights
This commit is contained in:
parent
e481274243
commit
e9c8bfbb9c
20 changed files with 1226 additions and 89 deletions
|
|
@ -179,6 +179,7 @@ mod tests {
|
|||
trains: Vec::new(),
|
||||
territories: Vec::new(),
|
||||
company_territory_track_piece_counts: Vec::new(),
|
||||
company_territory_access: Vec::new(),
|
||||
packed_event_collection: None,
|
||||
event_runtime_records: Vec::new(),
|
||||
candidate_availability: BTreeMap::new(),
|
||||
|
|
@ -347,6 +348,7 @@ mod tests {
|
|||
trains: Vec::new(),
|
||||
territories: Vec::new(),
|
||||
company_territory_track_piece_counts: Vec::new(),
|
||||
company_territory_access: Vec::new(),
|
||||
packed_event_collection: None,
|
||||
event_runtime_records: Vec::new(),
|
||||
candidate_availability: BTreeMap::new(),
|
||||
|
|
|
|||
|
|
@ -122,7 +122,9 @@ pub struct ExpectedRuntimeSummary {
|
|||
#[serde(default)]
|
||||
pub packed_event_blocked_unmapped_real_descriptor_count: Option<usize>,
|
||||
#[serde(default)]
|
||||
pub packed_event_blocked_territory_policy_descriptor_count: Option<usize>,
|
||||
pub packed_event_blocked_territory_access_variant_count: Option<usize>,
|
||||
#[serde(default)]
|
||||
pub packed_event_blocked_territory_access_scope_count: Option<usize>,
|
||||
#[serde(default)]
|
||||
pub packed_event_blocked_missing_train_context_count: Option<usize>,
|
||||
#[serde(default)]
|
||||
|
|
@ -615,11 +617,19 @@ impl ExpectedRuntimeSummary {
|
|||
));
|
||||
}
|
||||
}
|
||||
if let Some(count) = self.packed_event_blocked_territory_policy_descriptor_count {
|
||||
if actual.packed_event_blocked_territory_policy_descriptor_count != count {
|
||||
if let Some(count) = self.packed_event_blocked_territory_access_variant_count {
|
||||
if actual.packed_event_blocked_territory_access_variant_count != count {
|
||||
mismatches.push(format!(
|
||||
"packed_event_blocked_territory_policy_descriptor_count mismatch: expected {count}, got {}",
|
||||
actual.packed_event_blocked_territory_policy_descriptor_count
|
||||
"packed_event_blocked_territory_access_variant_count mismatch: expected {count}, got {}",
|
||||
actual.packed_event_blocked_territory_access_variant_count
|
||||
));
|
||||
}
|
||||
}
|
||||
if let Some(count) = self.packed_event_blocked_territory_access_scope_count {
|
||||
if actual.packed_event_blocked_territory_access_scope_count != count {
|
||||
mismatches.push(format!(
|
||||
"packed_event_blocked_territory_access_scope_count mismatch: expected {count}, got {}",
|
||||
actual.packed_event_blocked_territory_access_scope_count
|
||||
));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue