diff options
Diffstat (limited to 'searchcore/src/tests')
8 files changed, 19 insertions, 1 deletions
diff --git a/searchcore/src/tests/proton/common/cachedselect_test.cpp b/searchcore/src/tests/proton/common/cachedselect_test.cpp index 56ae361735e..d197d94fda4 100644 --- a/searchcore/src/tests/proton/common/cachedselect_test.cpp +++ b/searchcore/src/tests/proton/common/cachedselect_test.cpp @@ -196,6 +196,7 @@ public: _gets(0) { } + ~MyIntAv() override; virtual uint32_t get(AttributeVector::DocId doc, largeint_t *v, uint32_t sz) const override @@ -211,6 +212,7 @@ public: } }; +MyIntAv::~MyIntAv() = default; class MyAttributeManager : public MockAttributeManager { diff --git a/searchcore/src/tests/proton/documentdb/storeonlyfeedview/storeonlyfeedview_test.cpp b/searchcore/src/tests/proton/documentdb/storeonlyfeedview/storeonlyfeedview_test.cpp index acd33ab749d..00694b6b78f 100644 --- a/searchcore/src/tests/proton/documentdb/storeonlyfeedview/storeonlyfeedview_test.cpp +++ b/searchcore/src/tests/proton/documentdb/storeonlyfeedview/storeonlyfeedview_test.cpp @@ -148,6 +148,7 @@ struct MoveOperationFeedView : public MyMinimalFeedView { removeIndexFieldsCount(0), onWriteDoneContexts() {} + ~MoveOperationFeedView() override; void putAttributes(SerialNum, search::DocumentIdT, const document::Document &, OnPutDoneType onWriteDone) override { ++putAttributesCount; EXPECT_EQUAL(1, outstandingMoveOps); @@ -192,6 +193,8 @@ struct MoveOperationFeedView : public MyMinimalFeedView { } }; +MoveOperationFeedView::~MoveOperationFeedView() = default; + struct MoveOperationCallback : public IDestructorCallback { std::atomic<int> &outstandingMoveOps; explicit MoveOperationCallback(std::atomic<int> &outstandingMoveOps_) noexcept : outstandingMoveOps(outstandingMoveOps_) { diff --git a/searchcore/src/tests/proton/flushengine/flushengine_test.cpp b/searchcore/src/tests/proton/flushengine/flushengine_test.cpp index 7e4980277e7..506313527eb 100644 --- a/searchcore/src/tests/proton/flushengine/flushengine_test.cpp +++ b/searchcore/src/tests/proton/flushengine/flushengine_test.cpp @@ -254,7 +254,7 @@ protected: public: using SP = std::shared_ptr<SimpleTarget>; - SimpleTarget(Task::UP task, const std::string &name) : + SimpleTarget(Task::UP task, const std::string &name) noexcept : test::DummyFlushTarget(name), _flushedSerial(0), _currentSerial(0), diff --git a/searchcore/src/tests/proton/index/index_writer/CMakeLists.txt b/searchcore/src/tests/proton/index/index_writer/CMakeLists.txt index 7a0090a4f38..4b27f0e9556 100644 --- a/searchcore/src/tests/proton/index/index_writer/CMakeLists.txt +++ b/searchcore/src/tests/proton/index/index_writer/CMakeLists.txt @@ -3,6 +3,7 @@ vespa_add_executable(searchcore_index_writer_test_app TEST SOURCES index_writer_test.cpp DEPENDS + searchcore_test searchcore_index searchcore_pcommon ) diff --git a/searchcore/src/tests/proton/index/index_writer/index_writer_test.cpp b/searchcore/src/tests/proton/index/index_writer/index_writer_test.cpp index 62a691d72e6..75e6b01b46f 100644 --- a/searchcore/src/tests/proton/index/index_writer/index_writer_test.cpp +++ b/searchcore/src/tests/proton/index/index_writer/index_writer_test.cpp @@ -42,6 +42,7 @@ struct MyIndexManager : public test::MockIndexManager wantedLidLimit(0), compactSerial(0) { } + ~MyIndexManager() override; std::string getPut(uint32_t lid) { return toString(puts[lid]); } @@ -72,6 +73,8 @@ struct MyIndexManager : public test::MockIndexManager } }; +MyIndexManager::~MyIndexManager() = default; + struct Fixture { IIndexManager::SP iim; diff --git a/searchcore/src/tests/proton/matching/docid_range_scheduler/docid_range_scheduler_bench.cpp b/searchcore/src/tests/proton/matching/docid_range_scheduler/docid_range_scheduler_bench.cpp index f82377c9188..c85ef7f3446 100644 --- a/searchcore/src/tests/proton/matching/docid_range_scheduler/docid_range_scheduler_bench.cpp +++ b/searchcore/src/tests/proton/matching/docid_range_scheduler/docid_range_scheduler_bench.cpp @@ -204,6 +204,7 @@ struct RangeChecker : vespalib::Rendezvous<std::reference_wrapper<const WorkTrac size_t docid_limit; RangeChecker(size_t num_threads, size_t docid_limit_in) : vespalib::Rendezvous<std::reference_wrapper<const WorkTracker>,bool>(num_threads), docid_limit(docid_limit_in) {} + ~RangeChecker() override; virtual void mingle() override { std::vector<DocidRange> ranges; for (size_t i = 0; i < size(); ++i) { @@ -230,6 +231,8 @@ struct RangeChecker : vespalib::Rendezvous<std::reference_wrapper<const WorkTrac } }; +RangeChecker::~RangeChecker() = default; + const size_t my_docid_limit = 100001; TEST_MT_FFFF("benchmark different combinations of schedulers and work loads", 8, diff --git a/searchcore/src/tests/proton/proton_config_fetcher/proton_config_fetcher_test.cpp b/searchcore/src/tests/proton/proton_config_fetcher/proton_config_fetcher_test.cpp index 34bc9ea13ed..4022bd68c92 100644 --- a/searchcore/src/tests/proton/proton_config_fetcher/proton_config_fetcher_test.cpp +++ b/searchcore/src/tests/proton/proton_config_fetcher/proton_config_fetcher_test.cpp @@ -185,6 +185,7 @@ struct ProtonConfigOwner : public proton::IProtonConfigurer VarHolder<std::shared_ptr<ProtonConfigSnapshot>> _config; ProtonConfigOwner() : _configured(false), _config() { } + ~ProtonConfigOwner() override; bool waitUntilConfigured(vespalib::duration timeout) { vespalib::Timer timer; while (timer.elapsed() < timeout) { @@ -220,6 +221,8 @@ struct ProtonConfigOwner : public proton::IProtonConfigurer } }; +ProtonConfigOwner::~ProtonConfigOwner() = default; + TEST_F("require that bootstrap config manager creats correct key set", BootstrapConfigManager("foo")) { const ConfigKeySet set(f1.createConfigKeySet()); ASSERT_EQUAL(4u, set.size()); diff --git a/searchcore/src/tests/proton/server/health_adapter/health_adapter_test.cpp b/searchcore/src/tests/proton/server/health_adapter/health_adapter_test.cpp index d68b6139835..c779645e7f4 100644 --- a/searchcore/src/tests/proton/server/health_adapter/health_adapter_test.cpp +++ b/searchcore/src/tests/proton/server/health_adapter/health_adapter_test.cpp @@ -7,6 +7,7 @@ using namespace proton; struct MyStatusProducer : public StatusProducer { StatusReport::List list; + ~MyStatusProducer() override; void add(const std::string &comp, StatusReport::State state, const std::string &msg) { @@ -18,6 +19,8 @@ struct MyStatusProducer : public StatusProducer { } }; +MyStatusProducer::~MyStatusProducer() = default; + TEST_FF("require that empty status list passes health check", MyStatusProducer(), HealthAdapter(f1)) { EXPECT_TRUE(f2.getHealth().ok); EXPECT_EQUAL(std::string("All OK"), f2.getHealth().msg); |