pub mod acp;
pub mod direct;
pub mod fetch;
mod resets;
pub mod scope;
pub mod types;
pub mod vendor;
pub use fetch::{FetchOutcome, fetch_snapshot};
#[cfg(test)]
mod guard_tests {
#[test]
fn no_credential_bearing_request_takes_its_host_from_the_environment() {
let mut offenders = Vec::new();
for file in crate::guard::rs_files_in("src/supergrok") {
let source = std::fs::read_to_string(&file).expect("readable module");
let production = crate::guard::production_code(&source);
if production.contains("Authorization") && production.contains("env::var") {
offenders.push(file.display().to_string());
}
}
assert!(
offenders.is_empty(),
"a request carrying the login key must use a fixed host; tests reach \
the seam through an explicit parameter. Found: {offenders:#?}"
);
}
}