v0.3.8-pre.002

This commit is contained in:
2026-09-03 10:44:49 +02:00
parent 3df8fc74c1
commit 6a1892792c
50 changed files with 3409 additions and 23 deletions

View File

@@ -0,0 +1,13 @@
// file: crates/ksp-app-store-desk/unit_tests/dto_common.rs
// version: 1
#[test]
fn command_error_projection_keeps_only_stable_public_fields() {
let source = ksp_core_lib::Error::new(crate::ERROR_CODE_APP_STATE_INVALID, "safe message").with_context("secret_context", "must-not-cross-ipc");
let projected = crate::CommandErrorDto::from_error(&source);
assert_eq!(projected.domain, "store_desk");
assert_eq!(projected.code, "app_state_invalid");
assert_eq!(projected.message, "safe message");
let debug = format!("{projected:?}");
assert!(!debug.contains("must-not-cross-ipc"));
}