v0.1.0-pre.061
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
// file: kb-app-demo-desktop/src/demo_decode_replay.rs
|
||||
// version: 30
|
||||
// version: 32
|
||||
|
||||
//! Tauri commands and UI payloads for contextual instruction decode replay.
|
||||
|
||||
@@ -143,9 +143,12 @@ pub(crate) struct DemoDecodeProcessorSummaryPayload {
|
||||
/// Unsupported input count.
|
||||
#[ts(type = "number")]
|
||||
pub(crate) unsupported: u64,
|
||||
/// Failed input count.
|
||||
/// Explicit decoder failure count.
|
||||
#[ts(type = "number")]
|
||||
pub(crate) failed: u64,
|
||||
/// Orchestration, storage or other processing error count.
|
||||
#[ts(type = "number")]
|
||||
pub(crate) processing_errors: u64,
|
||||
/// Materialized output count.
|
||||
#[ts(type = "number")]
|
||||
pub(crate) materialized_outputs: u64,
|
||||
@@ -181,9 +184,12 @@ pub(crate) struct DemoDecodeReplaySummaryPayload {
|
||||
/// Number never started after cancellation.
|
||||
#[ts(type = "number")]
|
||||
pub(crate) not_started: u64,
|
||||
/// Number of failed contextual inputs.
|
||||
/// Number of inputs returning an explicit decoder failure.
|
||||
#[ts(type = "number")]
|
||||
pub(crate) failed_inputs: u64,
|
||||
/// Number of inputs interrupted by orchestration, storage or processing errors.
|
||||
#[ts(type = "number")]
|
||||
pub(crate) processing_error_inputs: u64,
|
||||
/// Whether cancellation was observed.
|
||||
pub(crate) cancelled: bool,
|
||||
/// Per-processor counters.
|
||||
@@ -544,6 +550,7 @@ pub(crate) fn demo_decode_replay_summary_payload(
|
||||
unmatched: summary.unmatched,
|
||||
not_started: summary.not_started,
|
||||
failed_inputs: summary.failed_inputs,
|
||||
processing_error_inputs: summary.processing_error_inputs,
|
||||
cancelled: summary.cancelled,
|
||||
processors: summary
|
||||
.processors
|
||||
@@ -558,6 +565,7 @@ pub(crate) fn demo_decode_replay_summary_payload(
|
||||
ignored: processor.ignored,
|
||||
unsupported: processor.unsupported,
|
||||
failed: processor.failed,
|
||||
processing_errors: processor.processing_errors,
|
||||
materialized_outputs: processor.materialized_outputs,
|
||||
materialization_refused: processor.materialization_refused,
|
||||
};
|
||||
@@ -733,7 +741,7 @@ mod tests {
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn native_memo_token2022_elgamal_classic_token_and_ata_decoders_are_registered() {
|
||||
fn native_memo_token_2022_elgamal_classic_token_and_ata_decoders_are_registered() {
|
||||
let decoders = crate::available_decoders();
|
||||
assert_eq!(decoders.len(), 7);
|
||||
let mut names = decoders
|
||||
@@ -748,7 +756,7 @@ mod tests {
|
||||
"spl_elgamal_registry".to_string(),
|
||||
"spl_memo".to_string(),
|
||||
"spl_token".to_string(),
|
||||
"spl_token2022".to_string(),
|
||||
"spl_token_2022".to_string(),
|
||||
];
|
||||
expected_names.sort();
|
||||
assert_eq!(names, expected_names);
|
||||
|
||||
Reference in New Issue
Block a user