v0.3.10-pre.002-fix.001

This commit is contained in:
2026-09-06 09:59:28 +02:00
parent d0da907c00
commit aabe8dedb2
8 changed files with 198 additions and 13 deletions

View File

@@ -1,5 +1,7 @@
// file: crates/ksp-raw-transaction-lib/tests/dependency_boundary.rs
// version: 1
// version: 2
//! Dependency-boundary canaries for the common RAW Transaction foundation.
fn manifest() -> std::string::String {
return std::fs::read_to_string(std::path::Path::new(env!("CARGO_MANIFEST_DIR")).join("Cargo.toml")).unwrap_or_default();

View File

@@ -1,5 +1,7 @@
// file: crates/ksp-raw-transaction-lib/tests/public_api.rs
// version: 1
// version: 2
//! Integration canaries for the public common RAW Transaction crate-root surface.
#[test]
fn pre_002_common_raw_contract_is_consumable_from_crate_root() {

View File

@@ -1,5 +1,7 @@
// file: crates/ksp-raw-transaction-lib/tests/release_completeness.rs
// version: 1
// version: 2
//! Release-completeness canaries for the common RAW Transaction foundation.
#[test]
fn pre_002_production_module_inventory_is_exact() {
@@ -11,11 +13,13 @@ fn pre_002_production_module_inventory_is_exact() {
let mut names = std::vec::Vec::new();
for entry in entries.flatten() {
let path = entry.path();
if path.extension().and_then(std::ffi::OsStr::to_str) == std::option::Option::Some("rs") {
if let std::option::Option::Some(name) = path.file_name().and_then(std::ffi::OsStr::to_str) {
names.push(name.to_owned());
}
if path.extension().and_then(std::ffi::OsStr::to_str) != std::option::Option::Some("rs") {
continue;
}
let std::option::Option::Some(name) = path.file_name().and_then(std::ffi::OsStr::to_str) else {
continue;
};
names.push(name.to_owned());
}
names.sort();
let expected = ["acquisition.rs", "canonical.rs", "error.rs", "lib.rs", "signature.rs"];

View File

@@ -1,5 +1,7 @@
// file: crates/ksp-raw-transaction-lib/tests/security_hardening.rs
// version: 1
// version: 2
//! Adversarial canaries for the common RAW Transaction foundation.
#[test]
fn pre_002_signature_errors_never_echo_hostile_input() {