v0.3.14-pre.013-fix.001
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
// file: crates/ksp-worker-raw-transaction-ingest-lib/tests/public_api.rs
|
||||
// version: 24
|
||||
// version: 25
|
||||
|
||||
//! External public-surface proofs for the RAW transaction ingest Worker foundation.
|
||||
|
||||
@@ -483,7 +483,7 @@ fn v0_3_14_pre_011_gap_observability_is_public_bounded_and_source_neutral() {
|
||||
#[test]
|
||||
fn v0_3_14_pre_013_completeness_closure_adds_no_public_surface() {
|
||||
let root = include_str!("../src/lib.rs");
|
||||
let public_exports = root.lines().filter(|line| line.trim().starts_with("pub use ")).count();
|
||||
let public_exports = root.lines().filter(|line| return line.trim().starts_with("pub use ")).count();
|
||||
assert_eq!(public_exports, 43);
|
||||
for required in [
|
||||
"RawTransactionIngestGapId",
|
||||
@@ -505,7 +505,7 @@ fn v0_3_14_pre_013_completeness_closure_adds_no_public_surface() {
|
||||
"RawTransactionIngestSourceLossDecision",
|
||||
] {
|
||||
assert!(
|
||||
!root.lines().any(|line| line.trim().starts_with("pub use ") && line.contains(forbidden)),
|
||||
!root.lines().any(|line| return line.trim().starts_with("pub use ") && line.contains(forbidden)),
|
||||
"pre.013 private type leaked publicly: {forbidden}"
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user