aboutsummaryrefslogtreecommitdiffstats
path: root/searchlib/src/tests/attribute/imported_attribute_vector
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2017-03-09 13:35:46 +0100
committerHenning Baldersheim <balder@yahoo-inc.com>2017-03-09 13:35:46 +0100
commit27821c298d6f61b025e400812cdd71871c1e3982 (patch)
tree377a8ae20b41f46631db2098c1b8eb41f477bce9 /searchlib/src/tests/attribute/imported_attribute_vector
parent7f3e8265707321bf3156e2fe4d4f6e56d17ed557 (diff)
Deinline destructorsi and use -Winline gcc option.
Diffstat (limited to 'searchlib/src/tests/attribute/imported_attribute_vector')
-rw-r--r--searchlib/src/tests/attribute/imported_attribute_vector/imported_attribute_vector_test.cpp21
1 files changed, 13 insertions, 8 deletions
diff --git a/searchlib/src/tests/attribute/imported_attribute_vector/imported_attribute_vector_test.cpp b/searchlib/src/tests/attribute/imported_attribute_vector/imported_attribute_vector_test.cpp
index 62b337bfc59..5ed1b62bfb0 100644
--- a/searchlib/src/tests/attribute/imported_attribute_vector/imported_attribute_vector_test.cpp
+++ b/searchlib/src/tests/attribute/imported_attribute_vector/imported_attribute_vector_test.cpp
@@ -73,14 +73,8 @@ struct Fixture {
std::shared_ptr<ImportedAttributeVector> imported_attr;
std::shared_ptr<MockGidToLidMapperFactory> mapper_factory;
- Fixture()
- : target_attr(create_single_attribute<IntegerAttribute>(BasicType::INT32)),
- reference_attr(create_reference_attribute()),
- imported_attr(create_attribute_vector_from_members()),
- mapper_factory(std::make_shared<MockGidToLidMapperFactory>())
- {
- reference_attr->setGidToLidMapperFactory(mapper_factory);
- }
+ Fixture();
+ ~Fixture();
void map_reference(DocId from_lid, GlobalId via_gid, DocId to_lid) {
assert(from_lid < reference_attr->getNumDocs());
@@ -178,6 +172,17 @@ struct Fixture {
}
};
+Fixture::Fixture()
+ : target_attr(create_single_attribute<IntegerAttribute>(BasicType::INT32)),
+ reference_attr(create_reference_attribute()),
+ imported_attr(create_attribute_vector_from_members()),
+ mapper_factory(std::make_shared<MockGidToLidMapperFactory>())
+{
+ reference_attr->setGidToLidMapperFactory(mapper_factory);
+}
+
+Fixture::~Fixture() {}
+
template <typename AttrValueType, typename PredicateType>
void assert_multi_value_matches(const Fixture& f,
DocId lid,