bhtune_test_support/lib.rs
1//! Unpublished shared test doubles for BHTune.
2//!
3//! This crate is not a product crate and is not published or packaged as a release
4//! artifact. The mock bridge depends only on the OPC DA protobuf contract, so the
5//! driver, CLI, and server tests can share one implementation without a dependency cycle.
6//!
7//! The `mock-driver` feature is an empty cycle guard. The in-process CLI and driver
8//! `MockDriver` doubles stay in the crates that use them.
9
10#![cfg_attr(
11 test,
12 allow(
13 clippy::unwrap_used,
14 clippy::expect_used,
15 clippy::panic,
16 reason = "unit tests may use unwrap, expect, and panic; production code must return typed errors"
17 )
18)]
19
20mod mock_bridge;
21
22pub use mock_bridge::{MockBridgeService, MockServerHandle, start_mock_server};