mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-27 11:41:39 +00:00
Jae/fixprefixdb (#199)
* Fix PrefixDB Iterator * PrefixDB Iterator/ReverseIterator fixes * Bump version 0.8.2 * Update CHANGELOG.md about DebugDB * Keep invalid source to be closed * Use prefixBatch instead of memBatch
This commit is contained in:
@ -33,6 +33,12 @@ func checkNextPanics(t *testing.T, itr Iterator) {
|
||||
assert.Panics(t, func() { itr.Next() }, "checkNextPanics expected panic but didn't")
|
||||
}
|
||||
|
||||
func checkDomain(t *testing.T, itr Iterator, start, end []byte) {
|
||||
ds, de := itr.Domain()
|
||||
assert.Equal(t, start, ds, "checkDomain domain start incorrect")
|
||||
assert.Equal(t, end, de, "checkDomain domain end incorrect")
|
||||
}
|
||||
|
||||
func checkItem(t *testing.T, itr Iterator, key []byte, value []byte) {
|
||||
k, v := itr.Key(), itr.Value()
|
||||
assert.Exactly(t, key, k)
|
||||
|
Reference in New Issue
Block a user