(&self, hash: &Hash)
| 353 | impl ChangeStore for TamperedStore<'_> { |
| 354 | type Error = <MemoryChangeStore as ChangeStore>::Error; |
| 355 | fn get_change(&self, hash: &Hash) -> std::result::Result<Change, Self::Error> { |
| 356 | if *hash == self.missing { |
| 357 | return self.inner.get_change(&Hash::of(b"intentionally absent")); |
| 358 | } |
| 359 | let mut change = self.inner.get_change(hash)?; |
| 360 | if *hash == self.corrupt { |
| 361 | change.hashed.header.message.push_str(" tampered"); |
| 362 | } |
| 363 | Ok(change) |
| 364 | } |
| 365 | fn get_contents<F>( |
| 366 | &self, |
| 367 | hash_fn: F, |
no outgoing calls
no test coverage detected