Closed vweevers closed 6 years ago
Added a list of tests, so we can easily see which ones can be removed from leveldown later.
List is outdated, should update after https://github.com/Level/leveldown/pull/506.
@vweevers Nice that you're hacking a bit on level. I have been doing other stuff for a while. Will try to get back into level shortly.
List updated.
leveldown/test/iterator-test.js
(innext
branch)iterator#seek throws if target is emptyThe empty-check is currently performed byleveldown
iterator#seek() to string target
iterator#seek() to buffer target
testCommon.bufferKeys
is falseiterator#seek() on reverse iterator
iterator#seek() to out of range target
iterator#seek() on reverse iterator to out of range target
iterator optimized for seek(hooks intoiterator.cache
which is aleveldown
detail)iterator#seek() throws if next() has not completed
close db with open iterator(unrelated)iterator#seek() throws after end()
iterator#seek() respects range
(done)target
is serializedTest that implementation doesn't define publicThis would requireseek
, which is currently the case inleveldown
and friends. They should define_seek
instead.Object.getPrototypeOf
shenanigans, making assumptions about the implementation and its prototype chain.