Documentation ¶
Index ¶
- func CommonTestKVCrud(t *testing.T, s store.KVStore)
- func CommonTestMerge(t *testing.T, s store.KVStore)
- func CommonTestPrefixIterator(t *testing.T, s store.KVStore)
- func CommonTestPrefixIteratorSeek(t *testing.T, s store.KVStore)
- func CommonTestRangeIterator(t *testing.T, s store.KVStore)
- func CommonTestRangeIteratorSeek(t *testing.T, s store.KVStore)
- func CommonTestReaderIsolation(t *testing.T, s store.KVStore)
- func CommonTestReaderOwnsGetBytes(t *testing.T, s store.KVStore)
- func CommonTestWriterOwnsBytes(t *testing.T, s store.KVStore)
- type TestMergeCounter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CommonTestReaderOwnsGetBytes ¶
CommonTestReaderOwnsGetBytes attempts to mutate the returned bytes first, while the reader is still open, second after that reader is closed, then the original key is read again, to ensure these modifications did not cause panic, or mutate the stored value
Types ¶
type TestMergeCounter ¶
type TestMergeCounter struct{}
a test merge operator which is just an incrementing counter of uint64
func (*TestMergeCounter) FullMerge ¶
func (mc *TestMergeCounter) FullMerge(key, existingValue []byte, operands [][]byte) ([]byte, bool)
func (*TestMergeCounter) Name ¶
func (mc *TestMergeCounter) Name() string
func (*TestMergeCounter) PartialMerge ¶
func (mc *TestMergeCounter) PartialMerge(key, leftOperand, rightOperand []byte) ([]byte, bool)
Click to show internal directories.
Click to hide internal directories.