MCPcopy Create free account
hub / github.com/CodeSentryAI/lockbud / test_parse_from_args_blacklist_ok

Function test_parse_from_args_blacklist_ok

src/options.rs:141–154  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected