#[cfg(any(test, feature = "test-support"))]
use crate::mock_client::{ExpectationBuilder, MockClient};
#[cfg(any(test, feature = "test-support"))]
pub trait SecurityhubMockHelpers {
fn expect_describe_hub(&mut self, hub_arn: &str) -> ExpectationBuilder<'_>;
}
#[cfg(any(test, feature = "test-support"))]
impl SecurityhubMockHelpers for MockClient {
fn expect_describe_hub(&mut self, hub_arn: &str) -> crate::mock_client::ExpectationBuilder<'_> {
let mut path = "/accounts".to_string();
let mut __qp: Vec<String> = Vec::new();
if !hub_arn.is_empty() {
__qp.push(format!("HubArn={}", hub_arn));
}
if !__qp.is_empty() {
path = format!("{}?{}", path, __qp.join("&"));
}
self.expect_get(&path)
}
}