Add save-slice-backed runtime fixtures
This commit is contained in:
parent
09b6514dbf
commit
8ca65cbbfb
12 changed files with 974 additions and 47 deletions
|
|
@ -32,6 +32,8 @@ pub struct RuntimeSummary {
|
|||
pub packed_event_record_count: usize,
|
||||
pub packed_event_decoded_record_count: usize,
|
||||
pub packed_event_imported_runtime_record_count: usize,
|
||||
pub packed_event_parity_only_record_count: usize,
|
||||
pub packed_event_unsupported_record_count: usize,
|
||||
pub event_runtime_record_count: usize,
|
||||
pub candidate_availability_count: usize,
|
||||
pub zero_candidate_availability_count: usize,
|
||||
|
|
@ -129,6 +131,28 @@ impl RuntimeSummary {
|
|||
.as_ref()
|
||||
.map(|summary| summary.imported_runtime_record_count)
|
||||
.unwrap_or(0),
|
||||
packed_event_parity_only_record_count: state
|
||||
.packed_event_collection
|
||||
.as_ref()
|
||||
.map(|summary| {
|
||||
summary
|
||||
.records
|
||||
.iter()
|
||||
.filter(|record| record.decode_status == "parity_only")
|
||||
.count()
|
||||
})
|
||||
.unwrap_or(0),
|
||||
packed_event_unsupported_record_count: state
|
||||
.packed_event_collection
|
||||
.as_ref()
|
||||
.map(|summary| {
|
||||
summary
|
||||
.records
|
||||
.iter()
|
||||
.filter(|record| record.decode_status == "unsupported_framing")
|
||||
.count()
|
||||
})
|
||||
.unwrap_or(0),
|
||||
event_runtime_record_count: state.event_runtime_records.len(),
|
||||
candidate_availability_count: state.candidate_availability.len(),
|
||||
zero_candidate_availability_count: state
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue