MCPcopy Create free account
hub / github.com/GCWing/BitFun / test_multiple_substring_matches

Function test_multiple_substring_matches

src/apps/cli/src/commands.rs:201–211  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

199
200 #[test]
201 fn test_multiple_substring_matches() {
202 let result = match_substring_in("/s", COMMAND_SPECS);
203 let names: Vec<&str> = result.iter().map(|s| s.name).collect();
204 assert!(names.contains(&"/sessions"));
205 assert!(names.contains(&"/skills"));
206 assert!(names.contains(&"/subagents"));
207 assert!(names.contains(&"/mcps"));
208 assert!(names.contains(&"/usage"));
209 assert!(names.contains(&"/models"));
210 assert!(names.contains(&"/history"));
211 }
212
213 #[test]
214 fn test_no_match() {

Callers

nothing calls this directly

Calls 3

match_substring_inFunction · 0.85
collectMethod · 0.80
iterMethod · 0.80

Tested by

no test coverage detected