v0.3.11-pre.004
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
// file: crates/ksp-worker-raw-transaction-ingest-lib/tests/public_api.rs
|
||||
// version: 4
|
||||
// version: 5
|
||||
|
||||
//! External public-surface proofs for the RAW transaction ingest Worker identity and settings foundation.
|
||||
|
||||
@@ -72,3 +72,22 @@ fn pre_003_runtime_bound_errors_are_stable_and_do_not_echo_values() {
|
||||
assert!(!std::format!("{error:?}").contains("raw-ingest-mainnet-001"));
|
||||
return;
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn pre_004_start_handle_and_terminal_future_are_consumable_without_public_join_handle() {
|
||||
let _start: fn(
|
||||
ksp_worker_raw_transaction_ingest_lib::RawTransactionIngestSettings,
|
||||
std::sync::Arc<ksp_store_lib::Store>,
|
||||
) -> ksp_core_lib::Result<ksp_worker_raw_transaction_ingest_lib::RawTransactionIngestHandle> =
|
||||
ksp_worker_raw_transaction_ingest_lib::RawTransactionIngestWorker::start;
|
||||
let _request_stop: fn(&ksp_worker_raw_transaction_ingest_lib::RawTransactionIngestHandle) -> bool =
|
||||
ksp_worker_raw_transaction_ingest_lib::RawTransactionIngestHandle::request_stop;
|
||||
let _wait_terminal: for<'a> fn(
|
||||
&'a ksp_worker_raw_transaction_ingest_lib::RawTransactionIngestHandle,
|
||||
) -> ksp_worker_raw_transaction_ingest_lib::RawTransactionIngestTerminalFuture<'a> =
|
||||
ksp_worker_raw_transaction_ingest_lib::RawTransactionIngestHandle::wait_terminal;
|
||||
let root = include_str!("../src/lib.rs");
|
||||
assert!(!root.contains("JoinHandle"));
|
||||
assert!(!root.contains("JoinSet"));
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user