Decode packed event records for runtime import
This commit is contained in:
parent
83f55fa26e
commit
09b6514dbf
13 changed files with 1801 additions and 50 deletions
|
|
@ -62,6 +62,14 @@ pub struct ExpectedRuntimeSummary {
|
|||
#[serde(default)]
|
||||
pub company_count: Option<usize>,
|
||||
#[serde(default)]
|
||||
pub packed_event_collection_present: Option<bool>,
|
||||
#[serde(default)]
|
||||
pub packed_event_record_count: Option<usize>,
|
||||
#[serde(default)]
|
||||
pub packed_event_decoded_record_count: Option<usize>,
|
||||
#[serde(default)]
|
||||
pub packed_event_imported_runtime_record_count: Option<usize>,
|
||||
#[serde(default)]
|
||||
pub event_runtime_record_count: Option<usize>,
|
||||
#[serde(default)]
|
||||
pub candidate_availability_count: Option<usize>,
|
||||
|
|
@ -301,6 +309,38 @@ impl ExpectedRuntimeSummary {
|
|||
));
|
||||
}
|
||||
}
|
||||
if let Some(present) = self.packed_event_collection_present {
|
||||
if actual.packed_event_collection_present != present {
|
||||
mismatches.push(format!(
|
||||
"packed_event_collection_present mismatch: expected {present}, got {}",
|
||||
actual.packed_event_collection_present
|
||||
));
|
||||
}
|
||||
}
|
||||
if let Some(count) = self.packed_event_record_count {
|
||||
if actual.packed_event_record_count != count {
|
||||
mismatches.push(format!(
|
||||
"packed_event_record_count mismatch: expected {count}, got {}",
|
||||
actual.packed_event_record_count
|
||||
));
|
||||
}
|
||||
}
|
||||
if let Some(count) = self.packed_event_decoded_record_count {
|
||||
if actual.packed_event_decoded_record_count != count {
|
||||
mismatches.push(format!(
|
||||
"packed_event_decoded_record_count mismatch: expected {count}, got {}",
|
||||
actual.packed_event_decoded_record_count
|
||||
));
|
||||
}
|
||||
}
|
||||
if let Some(count) = self.packed_event_imported_runtime_record_count {
|
||||
if actual.packed_event_imported_runtime_record_count != count {
|
||||
mismatches.push(format!(
|
||||
"packed_event_imported_runtime_record_count mismatch: expected {count}, got {}",
|
||||
actual.packed_event_imported_runtime_record_count
|
||||
));
|
||||
}
|
||||
}
|
||||
if let Some(count) = self.event_runtime_record_count {
|
||||
if actual.event_runtime_record_count != count {
|
||||
mismatches.push(format!(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue