(&self)
| 272 | } |
| 273 | |
| 274 | pub fn path_specificity(&self) -> usize { |
| 275 | if self.path.is_empty() { |
| 276 | 0 |
| 277 | } else { |
| 278 | self.path.chars().filter(|c| *c != '*').count() |
| 279 | } |
| 280 | } |
| 281 | } |
| 282 | |
| 283 | pub fn endpoint_path_matches(pattern: &str, path: &str) -> bool { |
no test coverage detected