Rehost save-native company market cache state
This commit is contained in:
parent
77c847afba
commit
5198f80cd9
9 changed files with 630 additions and 79 deletions
|
|
@ -84,6 +84,14 @@ pub struct ExpectedRuntimeSummary {
|
|||
#[serde(default)]
|
||||
pub active_company_count: Option<usize>,
|
||||
#[serde(default)]
|
||||
pub company_market_state_owner_count: Option<usize>,
|
||||
#[serde(default)]
|
||||
pub selected_company_outstanding_shares: Option<u32>,
|
||||
#[serde(default)]
|
||||
pub selected_company_cached_share_price_value_f32_text: Option<String>,
|
||||
#[serde(default)]
|
||||
pub selected_company_mutable_support_scalar_value_f32_text: Option<String>,
|
||||
#[serde(default)]
|
||||
pub player_count: Option<usize>,
|
||||
#[serde(default)]
|
||||
pub chairman_profile_count: Option<usize>,
|
||||
|
|
@ -541,6 +549,46 @@ impl ExpectedRuntimeSummary {
|
|||
));
|
||||
}
|
||||
}
|
||||
if let Some(count) = self.company_market_state_owner_count {
|
||||
if actual.company_market_state_owner_count != count {
|
||||
mismatches.push(format!(
|
||||
"company_market_state_owner_count mismatch: expected {count}, got {}",
|
||||
actual.company_market_state_owner_count
|
||||
));
|
||||
}
|
||||
}
|
||||
if let Some(value) = self.selected_company_outstanding_shares {
|
||||
if actual.selected_company_outstanding_shares != Some(value) {
|
||||
mismatches.push(format!(
|
||||
"selected_company_outstanding_shares mismatch: expected {value}, got {:?}",
|
||||
actual.selected_company_outstanding_shares
|
||||
));
|
||||
}
|
||||
}
|
||||
if let Some(value) = &self.selected_company_cached_share_price_value_f32_text {
|
||||
if actual
|
||||
.selected_company_cached_share_price_value_f32_text
|
||||
.as_ref()
|
||||
!= Some(value)
|
||||
{
|
||||
mismatches.push(format!(
|
||||
"selected_company_cached_share_price_value_f32_text mismatch: expected {value:?}, got {:?}",
|
||||
actual.selected_company_cached_share_price_value_f32_text
|
||||
));
|
||||
}
|
||||
}
|
||||
if let Some(value) = &self.selected_company_mutable_support_scalar_value_f32_text {
|
||||
if actual
|
||||
.selected_company_mutable_support_scalar_value_f32_text
|
||||
.as_ref()
|
||||
!= Some(value)
|
||||
{
|
||||
mismatches.push(format!(
|
||||
"selected_company_mutable_support_scalar_value_f32_text mismatch: expected {value:?}, got {:?}",
|
||||
actual.selected_company_mutable_support_scalar_value_f32_text
|
||||
));
|
||||
}
|
||||
}
|
||||
if let Some(count) = self.player_count {
|
||||
if actual.player_count != count {
|
||||
mismatches.push(format!(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue