Trait wasmcloud_interface_testing::Testing [−][src]
pub trait Testing {
fn start<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
ctx: &'life1 Context,
arg: &'life2 TestOptions
) -> Pin<Box<dyn Future<Output = RpcResult<TestResults>> + Send + 'async_trait>>
where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait;
fn contract_id() -> &'static str { ... }
}
Expand description
Test api for testable actors and providers wasmbus.contractId: wasmcloud:testing wasmbus.providerReceive wasmbus.actorReceive
Required methods
fn start<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
ctx: &'life1 Context,
arg: &'life2 TestOptions
) -> Pin<Box<dyn Future<Output = RpcResult<TestResults>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
fn start<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
ctx: &'life1 Context,
arg: &'life2 TestOptions
) -> Pin<Box<dyn Future<Output = RpcResult<TestResults>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
Begin tests
Provided methods
fn contract_id() -> &'static str
fn contract_id() -> &'static str
returns the capability contract id for this interface