Doc Integration tests

This commit is contained in:
Jazz Turner-Baggs 2026-04-28 16:40:18 -07:00
parent 7ceb15b763
commit ea06cf5186
No known key found for this signature in database
2 changed files with 12 additions and 22 deletions

View File

@ -0,0 +1,12 @@
This crate is dedicated to backend integration tests.
Tests can be built using any supplied service implementation.
Various implementations are available in the `Extensions/components` crate.
## Running Tests
Integration tests are executed when running `cargo test` from the workspace folder.
Alternatively they can be executed from any crate, using
`cargo test --package integration_tests_core`

View File

@ -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);
// }