(&self)
| 65 | } |
| 66 | |
| 67 | pub fn build_watch_patterns(&self) -> Result<Vec<Glob>, globset::Error> { |
| 68 | Ok(if let Some(watch_patterns) = &self.watch_patterns { |
| 69 | watch_patterns |
| 70 | .iter() |
| 71 | .map(|s| Glob::new(s)) |
| 72 | .collect::<Result<Vec<Glob>, globset::Error>>()? |
| 73 | } else { |
| 74 | default_watch_patterns() |
| 75 | }) |
| 76 | } |
| 77 | |
| 78 | pub fn build_ignore_patterns(&self) -> Result<Vec<Glob>, globset::Error> { |
| 79 | Ok(if let Some(ignore_patterns) = &self.ignore_patterns { |
no test coverage detected