The proven observation for `path` — its only legal expected-old value.
(&self, path: &str)
| 831 | impl ProvenWorktree { |
| 832 | /// The proven observation for `path` — its only legal expected-old value. |
| 833 | fn expected_old(&self, path: &str) -> Result<EffectValue, AdoptKnownEditError> { |
| 834 | self.observations.get(path).cloned().ok_or_else(|| { |
| 835 | AdoptKnownEditError::Repository(RepositoryError::InvalidOperation { |
| 836 | message: format!( |
| 837 | "the pre-adoption proof did not observe carried path '{path}'; \ |
| 838 | refusing to plan a lease from an unproven observation" |
| 839 | ), |
| 840 | }) |
| 841 | }) |
| 842 | } |
| 843 | } |
| 844 | |
| 845 | impl Repository { |
no test coverage detected