2023-08-23 19:26:31 +00:00
|
|
|
// RUST_LOG=warn cargo make ci-ws-integration
|
2024-01-09 15:27:03 +00:00
|
|
|
|
2023-08-03 14:59:05 +00:00
|
|
|
mod common;
|
|
|
|
|
2023-08-23 19:26:31 +00:00
|
|
|
mod ws_integration {
|
2023-11-20 19:08:07 +00:00
|
|
|
|
2024-01-09 15:27:03 +00:00
|
|
|
use super::common;
|
|
|
|
|
|
|
|
/// Tests for the empty protocol format
|
|
|
|
mod none {
|
|
|
|
// The WebSocket protocol header
|
|
|
|
const SERVER: Option<Format> = None;
|
|
|
|
// The format to send messages
|
|
|
|
const FORMAT: Format = Format::Json;
|
|
|
|
// Run all of the common tests
|
|
|
|
include!("common/tests.rs");
|
|
|
|
}
|
|
|
|
|
|
|
|
/// Tests for the JSON protocol format
|
|
|
|
mod json {
|
|
|
|
// The WebSocket protocol header
|
|
|
|
const SERVER: Option<Format> = Some(Format::Json);
|
|
|
|
// The format to send messages
|
|
|
|
const FORMAT: Format = Format::Json;
|
|
|
|
// Run all of the common tests
|
|
|
|
include!("common/tests.rs");
|
2023-11-20 19:08:07 +00:00
|
|
|
}
|
2023-08-03 14:59:05 +00:00
|
|
|
}
|