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

Function test_substring_match

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

Source from the content-addressed store, hash-verified

185
186 #[test]
187 fn test_substring_match() {
188 let result = match_substring_in("/age", COMMAND_SPECS);
189 let names: Vec<&str> = result.iter().map(|s| s.name).collect();
190 assert!(names.contains(&"/usage"));
191 }
192
193 #[test]
194 fn test_mid_string_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