Rehost company annual finance reader
This commit is contained in:
parent
c41a6b0e92
commit
4599976b17
7 changed files with 249 additions and 17 deletions
|
|
@ -92,8 +92,12 @@ pub struct ExpectedRuntimeSummary {
|
|||
#[serde(default)]
|
||||
pub selected_company_outstanding_shares: Option<u32>,
|
||||
#[serde(default)]
|
||||
pub selected_company_assigned_share_pool: Option<u32>,
|
||||
#[serde(default)]
|
||||
pub selected_company_unassigned_share_pool: Option<u32>,
|
||||
#[serde(default)]
|
||||
pub selected_company_cached_share_price: Option<i64>,
|
||||
#[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>,
|
||||
|
|
@ -593,6 +597,14 @@ impl ExpectedRuntimeSummary {
|
|||
));
|
||||
}
|
||||
}
|
||||
if let Some(value) = self.selected_company_assigned_share_pool {
|
||||
if actual.selected_company_assigned_share_pool != Some(value) {
|
||||
mismatches.push(format!(
|
||||
"selected_company_assigned_share_pool mismatch: expected {value}, got {:?}",
|
||||
actual.selected_company_assigned_share_pool
|
||||
));
|
||||
}
|
||||
}
|
||||
if let Some(value) = self.selected_company_unassigned_share_pool {
|
||||
if actual.selected_company_unassigned_share_pool != Some(value) {
|
||||
mismatches.push(format!(
|
||||
|
|
@ -601,6 +613,14 @@ impl ExpectedRuntimeSummary {
|
|||
));
|
||||
}
|
||||
}
|
||||
if let Some(value) = self.selected_company_cached_share_price {
|
||||
if actual.selected_company_cached_share_price != Some(value) {
|
||||
mismatches.push(format!(
|
||||
"selected_company_cached_share_price mismatch: expected {value}, got {:?}",
|
||||
actual.selected_company_cached_share_price
|
||||
));
|
||||
}
|
||||
}
|
||||
if let Some(value) = &self.selected_company_cached_share_price_value_f32_text {
|
||||
if actual
|
||||
.selected_company_cached_share_price_value_f32_text
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue