summaryrefslogtreecommitdiffstats
path: root/searchlib
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@online.no>2024-01-15 10:22:51 +0100
committerTor Egge <Tor.Egge@online.no>2024-01-15 10:22:51 +0100
commit256c24b57b6f8c127fc2b63225332b92f8a0d602 (patch)
tree8777a43cb8883674058c5140e75cfea10792783d /searchlib
parentae9a732e3e16d46457da372a4da594064442be04 (diff)
Deinline destructors in unit tests.
Diffstat (limited to 'searchlib')
-rw-r--r--searchlib/src/tests/queryeval/parallel_weak_and/parallel_weak_and_test.cpp3
-rw-r--r--searchlib/src/tests/queryeval/weak_and/weak_and_test.cpp6
2 files changed, 9 insertions, 0 deletions
diff --git a/searchlib/src/tests/queryeval/parallel_weak_and/parallel_weak_and_test.cpp b/searchlib/src/tests/queryeval/parallel_weak_and/parallel_weak_and_test.cpp
index aa6d922f23f..a9f549a0bd9 100644
--- a/searchlib/src/tests/queryeval/parallel_weak_and/parallel_weak_and_test.cpp
+++ b/searchlib/src/tests/queryeval/parallel_weak_and/parallel_weak_and_test.cpp
@@ -391,8 +391,11 @@ struct HeapFixture
SearchIterator::UP sb(spec.create());
result.search(*sb);
}
+ ~HeapFixture();
};
+HeapFixture::~HeapFixture() = default;
+
TEST(ParallelWeakAndTest, require_that_scores_are_collected_in_batches_before_adjusting_heap)
{
HeapFixture f;
diff --git a/searchlib/src/tests/queryeval/weak_and/weak_and_test.cpp b/searchlib/src/tests/queryeval/weak_and/weak_and_test.cpp
index 9409b2b26c4..689f9f085d0 100644
--- a/searchlib/src/tests/queryeval/weak_and/weak_and_test.cpp
+++ b/searchlib/src/tests/queryeval/weak_and/weak_and_test.cpp
@@ -37,8 +37,11 @@ struct SimpleWandFixture {
SearchIterator::UP search(spec.create());
hits.search(*search);
}
+ ~SimpleWandFixture();
};
+SimpleWandFixture::~SimpleWandFixture() = default;
+
struct AdvancedWandFixture {
MyWandSpec spec;
SimpleResult hits;
@@ -51,8 +54,11 @@ struct AdvancedWandFixture {
SearchIterator::UP search(spec.create());
hits.search(*search);
}
+ ~AdvancedWandFixture();
};
+AdvancedWandFixture::~AdvancedWandFixture() = default;
+
struct WeightOrder {
bool operator()(const wand::Term &t1, const wand::Term &t2) const {
return (t1.weight < t2.weight);