Appease the coverage gods with temporal sacrifices
@@ -23,7 +23,7 @@ pub trait TokenProvider: Clone + Default + Send {
}
pub struct GouthTokenProvider {
- gouth_token: Option<Token>,
+ pub(crate) gouth_token: Option<Token>,
}
impl Clone for GouthTokenProvider {
@@ -126,6 +126,17 @@ pub(crate) mod tests {
}
}
+ #[test]
+ fn appease_the_coverage_gods() {
+ let provider = GouthTokenProvider::default();
+ let mut provider = provider.clone();
+ assert!(provider.get_token().is_err());
+
+ let provider = FailingTokenProvider::default();
+ let mut provider = provider.clone();
+ assert!(provider.get_token().is_err());
+ }
+
#[test]
fn interceptor_can_add_the_auth_header() {
let mut interceptor = AuthInterceptor {
