Expand description
Conformance suites: call them from an implementation’s tests.
ⓘ
#[tokio::test]
async fn conformance() {
let clock = Arc::new(ManualClock::default());
let store = MyStore::new(clock.clone());
okbot_testkit::conformance::conversation_store(&store, &clock).await;
}Functions§
- channel
- Checks the outbound side of a running
Channel: call it whileChannel::runis serving (against your fake platform), with a target in a conversation that channel owns. - channel_
stops - Checks that
Channel::runreturns soon after shutdown. - conversation_
store - Checks a fresh, empty
ConversationStorethat reads time fromclock.