(&self, snapshot: &TileSnapshot)
| 132 | |
| 133 | impl SnapshotSink for MockSnapshotSink { |
| 134 | fn write_snapshot(&self, snapshot: &TileSnapshot) -> crate::error::ArrayResult<()> { |
| 135 | self.snapshots |
| 136 | .lock() |
| 137 | .expect("invariant: MockSnapshotSink mutex is not poisoned") |
| 138 | .push(snapshot.clone()); |
| 139 | Ok(()) |
| 140 | } |
| 141 | } |
| 142 | |
| 143 | // ─── Tests ─────────────────────────────────────────────────────────────────── |
no test coverage detected