summaryrefslogtreecommitdiffstats
path: root/vespalib/src/tests/datastore/unique_store_dictionary
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2021-03-09 15:42:55 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2021-03-09 15:42:55 +0000
commit6767eb4c65a82202f6b642751e8050836dbaf5d0 (patch)
tree7ebd638c8619ed6f8ed5b7ee8c70255cef17caaf /vespalib/src/tests/datastore/unique_store_dictionary
parent7f81c030ecb230a75a21e02e78fa6bb9290f4a69 (diff)
Add simple equal to Comparator interface.
Diffstat (limited to 'vespalib/src/tests/datastore/unique_store_dictionary')
-rw-r--r--vespalib/src/tests/datastore/unique_store_dictionary/unique_store_dictionary_test.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/vespalib/src/tests/datastore/unique_store_dictionary/unique_store_dictionary_test.cpp b/vespalib/src/tests/datastore/unique_store_dictionary/unique_store_dictionary_test.cpp
index fc5709072b9..08b80917f45 100644
--- a/vespalib/src/tests/datastore/unique_store_dictionary/unique_store_dictionary_test.cpp
+++ b/vespalib/src/tests/datastore/unique_store_dictionary/unique_store_dictionary_test.cpp
@@ -28,6 +28,9 @@ public:
bool less(const EntryRef lhs, const EntryRef rhs) const override {
return resolve(lhs).ref() < resolve(rhs).ref();
}
+ bool equal(const EntryRef lhs, const EntryRef rhs) const override {
+ return resolve(lhs).ref() == resolve(rhs).ref();
+ }
};
struct DictionaryReadTest : public ::testing::Test {