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

Function test_parse_from_str_whitelist_ok

src/options.rs:126–132  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected