Skip to content

Commit f925ef7

Browse files
committed
Expose MockMicrogridApiClient and MockComponent
Signed-off-by: Simon Völcker <simon.voelcker@frequenz.com>
1 parent 31fdaa3 commit f925ef7

3 files changed

Lines changed: 2 additions & 3 deletions

File tree

src/client.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,4 @@ pub use proto::common::microgrid::electrical_components::{
1818
ElectricalComponent, ElectricalComponentCategory,
1919
};
2020

21-
#[cfg(test)]
22-
pub(crate) mod test_utils;
21+
pub mod test_utils;

src/client/proto.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ mod pb {
1717
// Only export what we need
1818
pub use pb::frequenz::api::common::v1alpha8 as common;
1919
pub use pb::frequenz::api::microgrid::v1alpha18 as microgrid;
20-
#[cfg(test)]
2120
pub use pb::google;
2221

2322
mod electrical_component;

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ pub use bounds::Bounds;
99
pub mod client;
1010
pub use client::MicrogridClientHandle;
1111
pub(crate) use client::proto;
12+
pub use client::test_utils::{MockComponent, MockMicrogridApiClient};
1213

1314
mod error;
1415
pub use error::{Error, ErrorKind};

0 commit comments

Comments
 (0)