v0.3.15-pre.008
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
// file: crates/ksp-app-raw-transaction-ingest-desk/tests/release_completeness.rs
|
||||
// version: 4
|
||||
// version: 5
|
||||
|
||||
//! Release-completeness canaries for Raw Transaction Ingest Desk Start-resource reconstruction.
|
||||
|
||||
@@ -21,7 +21,7 @@ fn read_text(path: &std::path::Path) -> String {
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn pre_007_production_module_inventory_adds_only_route_start_to_pre_006_surface() {
|
||||
fn pre_008_production_module_inventory_adds_only_route_runtime_to_pre_007_surface() {
|
||||
let lib = read_text(app_root().join("src/lib.rs").as_path());
|
||||
let expected = [
|
||||
"mod app_state;",
|
||||
@@ -33,6 +33,7 @@ fn pre_007_production_module_inventory_adds_only_route_start_to_pre_006_surface(
|
||||
"mod frontend_logging;",
|
||||
"mod logging_runtime;",
|
||||
"mod route_inventory;",
|
||||
"mod route_runtime;",
|
||||
"mod route_start;",
|
||||
"mod splash;",
|
||||
"mod tauri;",
|
||||
@@ -46,14 +47,14 @@ fn pre_007_production_module_inventory_adds_only_route_start_to_pre_006_surface(
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn pre_007_public_surface_still_exposes_only_application_run_entry_point() {
|
||||
fn pre_008_public_surface_still_exposes_only_application_run_entry_point() {
|
||||
let lib = read_text(app_root().join("src/lib.rs").as_path());
|
||||
let public_reexports = lib.lines().filter(|line| return line.starts_with("pub use ")).collect::<std::vec::Vec<_>>();
|
||||
assert_eq!(public_reexports, vec!["pub use self::tauri::run;"]);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn pre_007_reconstructs_all_five_worker_source_contracts_without_advancing_store_or_worker_lifecycle() {
|
||||
fn pre_008_keeps_five_exact_source_reconstructions_separate_from_store_worker_lifecycle() {
|
||||
let route_start = read_text(app_root().join("src/route_start.rs").as_path());
|
||||
for required in [
|
||||
"RawTransactionIngestYellowstoneSource::new",
|
||||
@@ -61,14 +62,16 @@ fn pre_007_reconstructs_all_five_worker_source_contracts_without_advancing_store
|
||||
"RawTransactionIngestStandardBlockSource::new",
|
||||
"RawTransactionIngestHeliusTransactionSource::new",
|
||||
"RawTransactionIngestHttpBlockPollingSource::new",
|
||||
"SolanaLogsSubscribeFilter::AllWithVotes",
|
||||
"SolanaBlockSubscribeFilter::All",
|
||||
"YellowstoneSubscribeTransactionFilter::new",
|
||||
"RawTransactionIngestRuntimeResources",
|
||||
] {
|
||||
assert!(route_start.contains(required), "missing pre.007 exact Worker resource marker {required}");
|
||||
assert!(route_start.contains(required), "missing pre.008 exact Worker resource marker {required}");
|
||||
}
|
||||
for forbidden in ["Store::open", "start_with_runtime_resources", "request_stop", "RawTransactionIngestRuntimeResources::new"] {
|
||||
assert!(!route_start.contains(forbidden), "pre.007 advanced premature lifecycle marker {forbidden}");
|
||||
for forbidden in ["Store::open", "start_with_runtime_resources", "request_stop", "wait_terminal"] {
|
||||
assert!(!route_start.contains(forbidden), "route preparation owns runtime lifecycle marker {forbidden}");
|
||||
}
|
||||
let runtime = read_text(app_root().join("src/route_runtime.rs").as_path());
|
||||
for required in ["Store::open", "start_with_runtime_resources", "request_stop", "wait_terminal", "StoreHealthState::Ready", "close_store_arc"] {
|
||||
assert!(runtime.contains(required), "missing pre.008 lifecycle marker {required}");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -87,3 +90,17 @@ fn pre_007_start_revalidation_reuses_inventory_and_requires_profile_network_iden
|
||||
assert!(route_start.contains(required), "missing pre.007 revalidation marker {required}");
|
||||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn pre_008_mono_route_slot_blocks_second_start_until_terminal_store_cleanup() {
|
||||
let runtime = read_text(app_root().join("src/route_runtime.rs").as_path());
|
||||
for required in [
|
||||
"RouteRuntimeSlot::Starting",
|
||||
"RouteRuntimeSlot::Active",
|
||||
"ERROR_CODE_ROUTE_RUNTIME_ACTIVE",
|
||||
"runtime_state.finish(self.token)",
|
||||
"Arc::try_unwrap",
|
||||
] {
|
||||
assert!(runtime.contains(required), "missing mono-route ownership marker {required}");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user