(&self, path: &str)
| 668 | } |
| 669 | |
| 670 | fn conditional_path(&self, path: &str) -> bool { |
| 671 | self.placements |
| 672 | .get(path) |
| 673 | .into_iter() |
| 674 | .flatten() |
| 675 | .any(|placement| { |
| 676 | (1..=placement.module.len()).any(|depth| { |
| 677 | self.modules |
| 678 | .get(&(placement.root.clone(), placement.module[..depth].to_vec())) |
| 679 | .is_some_and(|access| access.conditional) |
| 680 | }) |
| 681 | }) |
| 682 | } |
| 683 | } |
no test coverage detected