()
| 176 | |
| 177 | #[test] |
| 178 | fn test_prefix_match() { |
| 179 | let result = match_substring_in("/he", COMMAND_SPECS); |
| 180 | assert_eq!(result.len(), 2); |
| 181 | let names: Vec<&str> = result.iter().map(|s| s.name).collect(); |
| 182 | assert!(names.contains(&"/help")); |
| 183 | assert!(names.contains(&"/theme")); |
| 184 | } |
| 185 | |
| 186 | #[test] |
| 187 | fn test_substring_match() { |
nothing calls this directly
no test coverage detected