Skip to main content

Module conformance

Module conformance 

Source
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 while Channel::run is serving (against your fake platform), with a target in a conversation that channel owns.
channel_stops
Checks that Channel::run returns soon after shutdown.
conversation_store
Checks a fresh, empty ConversationStore that reads time from clock.