diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2017-03-09 00:21:14 +0100 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2017-03-09 00:21:14 +0100 |
commit | 94eea5f229b0a4034676002a423b226185a10820 (patch) | |
tree | fddc26a218c233f7b3b509525370d0f6d7ef17c8 /searchlib/src/tests/attribute/document_weight_iterator | |
parent | 68c336f802bba1974186c085ee7725a12980e244 (diff) |
deiniline destructors
Diffstat (limited to 'searchlib/src/tests/attribute/document_weight_iterator')
-rw-r--r-- | searchlib/src/tests/attribute/document_weight_iterator/document_weight_iterator_test.cpp | 25 |
1 files changed, 15 insertions, 10 deletions
diff --git a/searchlib/src/tests/attribute/document_weight_iterator/document_weight_iterator_test.cpp b/searchlib/src/tests/attribute/document_weight_iterator/document_weight_iterator_test.cpp index 62bdbd9bf51..120c471de48 100644 --- a/searchlib/src/tests/attribute/document_weight_iterator/document_weight_iterator_test.cpp +++ b/searchlib/src/tests/attribute/document_weight_iterator/document_weight_iterator_test.cpp @@ -169,16 +169,8 @@ TEST_F("require that string iterators are created correctly", StringFixture) { class Verifier : public search::test::SearchIteratorVerifier { public: - Verifier() : - _attr(make_attribute(BasicType::INT64, CollectionType::WSET, true)) - { - add_docs(_attr, getDocIdLimit()); - auto docids = getExpectedDocIds(); - IntegerAttribute *int_attr = static_cast<IntegerAttribute *>(_attr.get()); - for (auto docid: docids) { - set_doc(int_attr, docid, int64_t(123), 1); - } - } + Verifier(); + ~Verifier(); SearchIterator::UP create(bool strict) const override { (void) strict; const IDocumentWeightAttribute *api(_attr->asDocumentWeightAttribute()); @@ -191,6 +183,19 @@ private: mutable fef::TermFieldMatchData _tfmd; AttributeVector::SP _attr; }; + +Verifier::Verifier() + : _attr(make_attribute(BasicType::INT64, CollectionType::WSET, true)) +{ + add_docs(_attr, getDocIdLimit()); + auto docids = getExpectedDocIds(); + IntegerAttribute *int_attr = static_cast<IntegerAttribute *>(_attr.get()); + for (auto docid: docids) { + set_doc(int_attr, docid, int64_t(123), 1); + } +} +Verifier::~Verifier() {} + TEST("verify document weight search iterator") { Verifier verifier; verifier.verify(); |