()
| 115 | |
| 116 | #[test] |
| 117 | fn test_parse_from_str_blacklist_ok() { |
| 118 | let options = Options::parse_from_str("-k deadlock -b -l cc,tokio_util,indicatif").unwrap(); |
| 119 | assert!(matches!(options.detector_kind, DetectorKind::Deadlock)); |
| 120 | assert!( |
| 121 | matches!(options.crate_name_list, CrateNameList::Black(v) if v == vec!["cc".to_owned(), "tokio_util".to_owned(), "indicatif".to_owned()]) |
| 122 | ); |
| 123 | } |
| 124 | |
| 125 | #[test] |
| 126 | fn test_parse_from_str_whitelist_ok() { |
nothing calls this directly
no outgoing calls
no test coverage detected