#![cfg(any(with_testing, with_wasm_runtime))]
#[cfg(with_integration_testing)]
mod block;
#[cfg(with_integration_testing)]
mod chain;
mod mock_stubs;
#[cfg(with_integration_testing)]
mod validator;
#[cfg(with_integration_testing)]
pub use {
linera_chain::data_types::{Medium, MessageAction},
linera_execution::{system::Recipient, QueryOutcome},
};
#[cfg(with_testing)]
pub use self::mock_stubs::*;
#[cfg(with_integration_testing)]
pub use self::{block::BlockBuilder, chain::ActiveChain, validator::TestValidator};
use crate::{Contract, ContractRuntime, Service, ServiceRuntime};
pub fn test_contract_runtime<Application: Contract>() -> ContractRuntime<Application> {
ContractRuntime::new()
}
pub fn test_service_runtime<Application: Service>() -> ServiceRuntime<Application> {
ServiceRuntime::new()
}