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

Function test_parse_from_str_blacklist_ok

src/options.rs:117–123  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected