func (_m *KVDB) PrefixCount(prefix []byte) int64 {
	ret := _m.Called(prefix)
	var r0 int64
	if rf, ok := ret.Get(0).(func([]byte) int64); ok {
		r0 = rf(prefix)
	} else {
		r0 = ret.Get(0).(int64)
	}
	return r0
}
PrefixCount provides a mock function with given fields: prefix
package mocks
import mock "github.com/stretchr/testify/mock"
type KVDB struct {
	mock.Mock
}
func (_m *KVDB) Begin() {
	_m.Called()
}
func (_m *KVDB) Commit() error {
	ret := _m.Called()
	var r0 error
	if rf, ok := ret.Get(0).(func() error); ok {
		r0 = rf()
	} else {
		r0 = ret.Error(0)
	}
	return r0
}
func (_m *KVDB) Get(key []byte) ([]byte, error) {
	ret := _m.Called(key)
	var r0 []byte
	if rf, ok := ret.Get(0).(func([]byte) []byte); ok {
		r0 = rf(key)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).([]byte)
		}
	}
	var r1 error
	if rf, ok := ret.Get(1).(func([]byte) error); ok {
		r1 = rf(key)
	} else {
		r1 = ret.Error(1)
	}
	return r0, r1
}
func (_m *KVDB) List(prefix []byte, key []byte, count int32, direction int32) ([][]byte, error) {
	ret := _m.Called(prefix, key, count, direction)
	var r0 [][]byte
	if rf, ok := ret.Get(0).(func([]byte, []byte, int32, int32) [][]byte); ok {
		r0 = rf(prefix, key, count, direction)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).([][]byte)
		}
	}
	var r1 error
	if rf, ok := ret.Get(1).(func([]byte, []byte, int32, int32) error); ok {
		r1 = rf(prefix, key, count, direction)
	} else {
		r1 = ret.Error(1)
	}
	return r0, r1
}