oa_gateway_testing::dds

Function start_dds_adapter_with

Source
pub async fn start_dds_adapter_with(
    engine: Arc<Engine>,
    id: impl Into<String>,
    domain_id: u16,
    topics: Vec<String>,
    edit: impl FnOnce(&mut DdsConfig),
) -> CancellationToken
Expand description

As start_dds_adapter, with the config open for editing first.

The fixture schema (oa_gateway_uci::slice::v25) is always attached, the same way crate::owp::start_owp_with attaches it — edit only needs to set DdsConfig::validate to turn checking on. Tests for max_sample_size set it far below the default, so reaching it costs a few bytes rather than megabytes.