diff --git a/crates/storage/db/src/abstraction/mock.rs b/crates/storage/db/src/abstraction/mock.rs index b476aab4d..bac7e061f 100644 --- a/crates/storage/db/src/abstraction/mock.rs +++ b/crates/storage/db/src/abstraction/mock.rs @@ -60,25 +60,23 @@ impl DbTx for TxMock { } fn commit(self) -> Result { - todo!() + Ok(true) } - fn drop(self) { - todo!() - } + fn drop(self) {} fn cursor_read(&self) -> Result<>::Cursor, DatabaseError> { - todo!() + Ok(CursorMock { _cursor: 0 }) } fn cursor_dup_read( &self, ) -> Result<>::DupCursor, DatabaseError> { - todo!() + Ok(CursorMock { _cursor: 0 }) } fn entries(&self) -> Result { - todo!() + Ok(self._table.len()) } }