diff options
author | Arne H Juul <arnej@yahoo-inc.com> | 2017-04-11 11:46:01 +0200 |
---|---|---|
committer | Arne H Juul <arnej@yahoo-inc.com> | 2017-04-11 11:46:01 +0200 |
commit | 689541432c21eea3a3d612726974d008676be8ae (patch) | |
tree | 8e78c62438aa61ac93feda3a473dc70c2379d8db /storage/src/tests/bucketdb/lockablemaptest.cpp | |
parent | a7747a035821de936c9bf9eba05c2c9c4ac1291f (diff) |
add override in storage tests
Diffstat (limited to 'storage/src/tests/bucketdb/lockablemaptest.cpp')
-rw-r--r-- | storage/src/tests/bucketdb/lockablemaptest.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/storage/src/tests/bucketdb/lockablemaptest.cpp b/storage/src/tests/bucketdb/lockablemaptest.cpp index f18e0edc02a..91f273928d6 100644 --- a/storage/src/tests/bucketdb/lockablemaptest.cpp +++ b/storage/src/tests/bucketdb/lockablemaptest.cpp @@ -354,7 +354,7 @@ namespace { struct InsertEraseLoadGiver : public LoadGiver { InsertEraseLoadGiver(Map& map) : LoadGiver(map) {} - void run() { + void run() override { // Screws up order of buckets by xor'ing with 12345. // Only operate on last 32k super buckets. while (running()) { @@ -375,7 +375,7 @@ namespace { struct GetLoadGiver : public LoadGiver { GetLoadGiver(Map& map) : LoadGiver(map) {} - void run() { + void run() override { // It's legal to keep entries as long as you only request higher // buckets. So, to test this, keep entries until you request one // that is smaller than those stored. @@ -395,7 +395,7 @@ namespace { struct AllLoadGiver : public LoadGiver { AllLoadGiver(Map& map) : LoadGiver(map) {} - void run() { + void run() override { while (running()) { _map.all(*this, "foo"); ++_counter; @@ -413,7 +413,7 @@ namespace { struct EachLoadGiver : public LoadGiver { EachLoadGiver(Map& map) : LoadGiver(map) {} - void run() { + void run() override { while (running()) { _map.each(*this, "foo"); ++_counter; @@ -431,7 +431,7 @@ namespace { struct RandomRangeLoadGiver : public LoadGiver { RandomRangeLoadGiver(Map& map) : LoadGiver(map) {} - void run() { + void run() override { while (running()) { uint32_t min = (_counter ^ 23426) % 0x10000; uint32_t max = (_counter ^ 40612) % 0x10000; @@ -460,7 +460,7 @@ namespace { struct GetNextLoadGiver : public LoadGiver { GetNextLoadGiver(Map& map) : LoadGiver(map) {} - void run() { + void run() override { while (running()) { uint32_t bucket = (_counter ^ 60417) % 0xffff; if (_counter % 7 < 5) { |