diff options
Diffstat (limited to 'vespalib/src/tests/datastore/array_store/array_store_test.cpp')
-rw-r--r-- | vespalib/src/tests/datastore/array_store/array_store_test.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/vespalib/src/tests/datastore/array_store/array_store_test.cpp b/vespalib/src/tests/datastore/array_store/array_store_test.cpp index 69df94f7181..210c18ddb29 100644 --- a/vespalib/src/tests/datastore/array_store/array_store_test.cpp +++ b/vespalib/src/tests/datastore/array_store/array_store_test.cpp @@ -54,12 +54,13 @@ struct ArrayStoreTest : public TestT generation(1), add_using_allocate(add_using_allocate_in) {} - ArrayStoreTest(const ArrayStoreConfig &storeCfg) + explicit ArrayStoreTest(const ArrayStoreConfig &storeCfg) : store(storeCfg, std::make_unique<MemoryAllocatorObserver>(stats)), refStore(), generation(1), add_using_allocate(false) {} + ~ArrayStoreTest() override; void assertAdd(const EntryVector &input) { EntryRef ref = add(input); assertGet(ref, input); @@ -163,6 +164,9 @@ struct ArrayStoreTest : public TestT size_t largeArraySize() const { return sizeof(LargeArray); } }; +template <typename TestT, typename EntryT, typename RefT> +ArrayStoreTest<TestT, EntryT, RefT>::~ArrayStoreTest() = default; + struct TestParam { bool add_using_allocate; TestParam(bool add_using_allocate_in) : add_using_allocate(add_using_allocate_in) {} |