mirror of
https://github.com/logos-messaging/libchat.git
synced 2026-08-26 15:41:13 +00:00
Doc Integration tests
This commit is contained in:
@@ -1,23 +1 @@
|
||||
// use std::ops::{Deref, DerefMut};
|
||||
|
||||
// use components::{EphemeralRegistry, LocalBroadcaster, MemStore};
|
||||
// use libchat::{
|
||||
// AddressedEnvelope, ChatStorage, ContentData, Context, ConversationIdOwned, Introduction,
|
||||
// StorageConfig,
|
||||
// };
|
||||
|
||||
// fn send_and_verify(
|
||||
// sender: &mut Context<LocalBroadcaster, EphemeralRegistry, ChatStorage>,
|
||||
// receiver: &mut Context<LocalBroadcaster, EphemeralRegistry, ChatStorage>,
|
||||
// convo_id: &str,
|
||||
// content: &[u8],
|
||||
// ) {
|
||||
// let payloads = sender.send_content(convo_id, content).unwrap();
|
||||
// let payload = payloads.first().unwrap();
|
||||
// let received = receiver
|
||||
// .handle_payload(&payload.data)
|
||||
// .unwrap()
|
||||
// .expect("expected content");
|
||||
// assert_eq!(content, received.data.as_slice());
|
||||
// assert!(!received.is_new_convo);
|
||||
// }
|
||||
|
||||
Reference in New Issue
Block a user