()
| 139 | |
| 140 | #[test] |
| 141 | fn test_parse_from_args_blacklist_ok() { |
| 142 | let options = Options::parse_from_args(&[ |
| 143 | "-k".to_owned(), |
| 144 | "deadlock".to_owned(), |
| 145 | "-b".to_owned(), |
| 146 | "-l".to_owned(), |
| 147 | "cc,tokio_util,indicatif".to_owned(), |
| 148 | ]) |
| 149 | .unwrap(); |
| 150 | assert!(matches!(options.detector_kind, DetectorKind::Deadlock)); |
| 151 | assert!( |
| 152 | matches!(options.crate_name_list, CrateNameList::Black(v) if v == vec!["cc".to_owned(), "tokio_util".to_owned(), "indicatif".to_owned()]) |
| 153 | ); |
| 154 | } |
| 155 | |
| 156 | #[test] |
| 157 | fn test_parse_from_args_whitelist_ok() { |
nothing calls this directly
no outgoing calls
no test coverage detected