1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
mod test_device; #[cfg(feature = "server")] mod test_device_comm_manager; use crate::device::DeviceImplCommand; use async_channel::Receiver; pub use test_device::{ TestDevice, TestDeviceEndpointChannel, TestDeviceImplCreator, TestDeviceInternal, }; #[cfg(feature = "server")] pub use test_device_comm_manager::{ new_bluetoothle_test_device, TestDeviceCommunicationManager, TestDeviceCommunicationManagerHelper, }; #[allow(dead_code)] pub async fn check_recv_value(receiver: &Receiver<DeviceImplCommand>, command: DeviceImplCommand) { assert!(!receiver.is_empty()); assert_eq!(receiver.recv().await.unwrap(), command); }