added a test for display scans

This commit is contained in:
epi
2020-11-20 15:38:47 -06:00
parent addf867f59
commit 1b1190582a

View File

@@ -378,4 +378,17 @@ mod tests {
assert_eq!(result, false);
}
#[test]
/// just increasing coverage, no real expectations
fn call_display_scans() {
let urls = FeroxScans::default();
let pb = ProgressBar::new(1);
let url = "http://unknown_url/";
let scan = FeroxScan::new(url, ScanType::Directory, Some(pb));
assert_eq!(urls.insert(scan), true);
urls.display_scans();
}
}