(
&self,
path: &str,
predicate: impl Fn(&EffectValue) -> bool,
)
| 137 | } |
| 138 | |
| 139 | fn effect_for_expected_new( |
| 140 | &self, |
| 141 | path: &str, |
| 142 | predicate: impl Fn(&EffectValue) -> bool, |
| 143 | ) -> Option<&EffectPlan> { |
| 144 | self.operation |
| 145 | .payload() |
| 146 | .delta |
| 147 | .effects |
| 148 | .iter() |
| 149 | .rev() |
| 150 | .find(|effect| { |
| 151 | matches!( |
| 152 | &effect.target, |
| 153 | EffectTarget::FilesystemPath { path: target } if target == path |
| 154 | ) && predicate(&effect.expected_new) |
| 155 | }) |
| 156 | } |
| 157 | |
| 158 | fn execute_effect( |
| 159 | &self, |
no test coverage detected