0.3.15-pre.014-fix.001
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
// file: crates/ksp-store-postgres-lib/tests/hardening_completeness.rs
|
||||
// version: 25
|
||||
// version: 26
|
||||
|
||||
#![warn(missing_docs)]
|
||||
#![deny(unreachable_pub)]
|
||||
@@ -643,3 +643,23 @@ fn v0_3_15_pre_014_content_conflict_diagnostic_exposes_only_block_slot_and_bound
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn v0_3_15_pre_014_fix_001_truncated_log_compatibility_is_narrow_and_keeps_canonical_content() {
|
||||
let source = include_str!("../src/raw_transaction.rs");
|
||||
for required in [
|
||||
"ActiveIncomingTruncatedLogs",
|
||||
"raw_transaction_incoming_truncated_log_messages_compatible",
|
||||
"raw_meta_other_than_log_messages_mismatch",
|
||||
"raw_log_messages_incoming_truncated_compatible",
|
||||
"raw_log_message_is_exact_truncation_marker",
|
||||
"marker_index >= stored.len()",
|
||||
"incoming[..marker_index] != stored[..marker_index]",
|
||||
"PostgreSQL Store accepted compatible truncated RAW transaction logs without replacing canonical content",
|
||||
] {
|
||||
assert!(source.contains(required), "missing narrow truncated-log compatibility guard: {required}");
|
||||
}
|
||||
assert!(!source.contains("UPDATE ksp_raw_transactions SET payload"));
|
||||
assert!(!source.contains("DELETE FROM ksp_raw_transactions"));
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user