()
| 124 | |
| 125 | #[test] |
| 126 | fn test_parse_from_str_whitelist_ok() { |
| 127 | let options = Options::parse_from_str("-k deadlock -l cc,tokio_util,indicatif").unwrap(); |
| 128 | assert!(matches!(options.detector_kind, DetectorKind::Deadlock)); |
| 129 | assert!( |
| 130 | matches!(options.crate_name_list, CrateNameList::White(v) if v == vec!["cc".to_owned(), "tokio_util".to_owned(), "indicatif".to_owned()]) |
| 131 | ); |
| 132 | } |
| 133 | |
| 134 | #[test] |
| 135 | fn test_parse_from_str_err() { |
nothing calls this directly
no outgoing calls
no test coverage detected