v0.3.15-pre.005

This commit is contained in:
2026-09-13 09:57:39 +02:00
parent 8adf1bda3f
commit b5554a9f9c
55 changed files with 3814 additions and 8 deletions

View File

@@ -0,0 +1,14 @@
// file: crates/ksp-app-raw-transaction-ingest-desk/unit_tests/dto_common.rs
// version: 1
#[test]
fn command_error_projection_excludes_arbitrary_context_and_source_values() {
let source = std::io::Error::other("secret-source");
let error = ksp_core_lib::Error::new(ksp_core_lib::ErrorCode::new("test", "failed"), "safe message")
.with_context("secret", "hidden")
.with_source(source);
let dto = crate::CommandErrorDto::from_error(&error);
assert_eq!(dto.domain, "test");
assert_eq!(dto.code, "failed");
assert_eq!(dto.message, "safe message");
}