2020-06-28 05:36:41 +00:00
|
|
|
// ██████╗ █████╗ ███████╗███████╗██╗███╗ ██╗ ██████╗
|
|
|
|
// ██╔══██╗██╔══██╗██╔════╝██╔════╝██║████╗ ██║██╔════╝
|
|
|
|
// ██████╔╝███████║███████╗███████╗██║██╔██╗ ██║██║ ███╗
|
|
|
|
// ██╔═══╝ ██╔══██║╚════██║╚════██║██║██║╚██╗██║██║ ██║
|
|
|
|
// ██║ ██║ ██║███████║███████║██║██║ ╚████║╚██████╔╝
|
|
|
|
// ╚═╝ ╚═╝ ╚═╝╚══════╝╚══════╝╚═╝╚═╝ ╚═══╝ ╚═════╝
|
|
|
|
|
|
|
|
#[cfg(test)]
|
|
|
|
mod passing {
|
2021-10-17 07:16:37 +00:00
|
|
|
use monolith::opts::Options;
|
2020-06-28 05:36:41 +00:00
|
|
|
|
|
|
|
#[test]
|
|
|
|
fn defaults() {
|
|
|
|
let options: Options = Options::default();
|
|
|
|
|
2020-12-26 01:55:52 +00:00
|
|
|
assert_eq!(options.no_audio, false);
|
2020-12-31 22:17:17 +00:00
|
|
|
assert_eq!(options.base_url, None);
|
2020-06-28 05:36:41 +00:00
|
|
|
assert_eq!(options.no_css, false);
|
2021-06-08 13:39:27 +00:00
|
|
|
assert_eq!(options.charset, None);
|
2020-06-28 05:36:41 +00:00
|
|
|
assert_eq!(options.no_frames, false);
|
|
|
|
assert_eq!(options.no_fonts, false);
|
|
|
|
assert_eq!(options.no_images, false);
|
|
|
|
assert_eq!(options.isolate, false);
|
|
|
|
assert_eq!(options.no_js, false);
|
|
|
|
assert_eq!(options.insecure, false);
|
|
|
|
assert_eq!(options.no_metadata, false);
|
2021-10-17 07:16:37 +00:00
|
|
|
assert_eq!(options.output, "".to_string());
|
2020-06-28 05:36:41 +00:00
|
|
|
assert_eq!(options.silent, false);
|
|
|
|
assert_eq!(options.timeout, 0);
|
2020-12-31 22:17:17 +00:00
|
|
|
assert_eq!(options.user_agent, None);
|
2020-12-26 01:55:52 +00:00
|
|
|
assert_eq!(options.no_video, false);
|
2020-12-31 22:17:17 +00:00
|
|
|
|
2021-10-17 07:16:37 +00:00
|
|
|
assert_eq!(options.target, "".to_string());
|
2020-06-28 05:36:41 +00:00
|
|
|
}
|
|
|
|
}
|