@@ -24,44 +24,44 @@ import (
24
24
)
25
25
26
26
// Tests is a list of all database tests
27
- var Tests = [ ]func (t * testing.T , db Database ){
28
- TestSimpleKeyValue ,
29
- TestOverwriteKeyValue ,
30
- TestEmptyKey ,
31
- TestKeyEmptyValue ,
32
- TestSimpleKeyValueClosed ,
33
- TestNewBatchClosed ,
34
- TestBatchPut ,
35
- TestBatchDelete ,
36
- TestBatchReset ,
37
- TestBatchReuse ,
38
- TestBatchRewrite ,
39
- TestBatchReplay ,
40
- TestBatchReplayPropagateError ,
41
- TestBatchInner ,
42
- TestBatchLargeSize ,
43
- TestIteratorSnapshot ,
44
- TestIterator ,
45
- TestIteratorStart ,
46
- TestIteratorPrefix ,
47
- TestIteratorStartPrefix ,
48
- TestIteratorMemorySafety ,
49
- TestIteratorClosed ,
50
- TestIteratorError ,
51
- TestIteratorErrorAfterRelease ,
52
- TestCompactNoPanic ,
53
- TestMemorySafetyDatabase ,
54
- TestMemorySafetyBatch ,
55
- TestAtomicClear ,
56
- TestClear ,
57
- TestAtomicClearPrefix ,
58
- TestClearPrefix ,
59
- TestModifyValueAfterPut ,
60
- TestModifyValueAfterBatchPut ,
61
- TestModifyValueAfterBatchPutReplay ,
62
- TestConcurrentBatches ,
63
- TestManySmallConcurrentKVPairBatches ,
64
- TestPutGetEmpty ,
27
+ var Tests = map [ string ]func (t * testing.T , db Database ){
28
+ "SimpleKeyValue" : TestSimpleKeyValue ,
29
+ "OverwriteKeyValue" : TestOverwriteKeyValue ,
30
+ "EmptyKey" : TestEmptyKey ,
31
+ "KeyEmptyValue" : TestKeyEmptyValue ,
32
+ "SimpleKeyValueClosed" : TestSimpleKeyValueClosed ,
33
+ "NewBatchClosed" : TestNewBatchClosed ,
34
+ "BatchPut" : TestBatchPut ,
35
+ "BatchDelete" : TestBatchDelete ,
36
+ "BatchReset" : TestBatchReset ,
37
+ "BatchReuse" : TestBatchReuse ,
38
+ "BatchRewrite" : TestBatchRewrite ,
39
+ "BatchReplay" : TestBatchReplay ,
40
+ "BatchReplayPropagateError" : TestBatchReplayPropagateError ,
41
+ "BatchInner" : TestBatchInner ,
42
+ "BatchLargeSize" : TestBatchLargeSize ,
43
+ "IteratorSnapshot" : TestIteratorSnapshot ,
44
+ "Iterator" : TestIterator ,
45
+ "IteratorStart" : TestIteratorStart ,
46
+ "IteratorPrefix" : TestIteratorPrefix ,
47
+ "IteratorStartPrefix" : TestIteratorStartPrefix ,
48
+ "IteratorMemorySafety" : TestIteratorMemorySafety ,
49
+ "IteratorClosed" : TestIteratorClosed ,
50
+ "IteratorError" : TestIteratorError ,
51
+ "IteratorErrorAfterRelease" : TestIteratorErrorAfterRelease ,
52
+ "CompactNoPanic" : TestCompactNoPanic ,
53
+ "MemorySafetyDatabase" : TestMemorySafetyDatabase ,
54
+ "MemorySafetyBatch" : TestMemorySafetyBatch ,
55
+ "AtomicClear" : TestAtomicClear ,
56
+ "Clear" : TestClear ,
57
+ "AtomicClearPrefix" : TestAtomicClearPrefix ,
58
+ "ClearPrefix" : TestClearPrefix ,
59
+ "ModifyValueAfterPut" : TestModifyValueAfterPut ,
60
+ "ModifyValueAfterBatchPut" : TestModifyValueAfterBatchPut ,
61
+ "ModifyValueAfterBatchPutReplay" : TestModifyValueAfterBatchPutReplay ,
62
+ "ConcurrentBatches" : TestConcurrentBatches ,
63
+ "ManySmallConcurrentKVPairBatches" : TestManySmallConcurrentKVPairBatches ,
64
+ "PutGetEmpty" : TestPutGetEmpty ,
65
65
}
66
66
67
67
// TestSimpleKeyValue tests to make sure that simple Put + Get + Delete + Has
0 commit comments