Allow test to work with unpack too.
@@ -264,7 +264,7 @@ TEST_F("test Eager Matching Children", MockFixture(5)) {
class IteratorChildrenVerifier : public search::test::IteratorChildrenVerifier {
private:
SearchIterator::UP create(const std::vector<SearchIterator*> &children) const override {
- std::vector<fef::TermFieldMatchData*> no_child_match;
+ std::vector<fef::TermFieldMatchData*> no_child_match(children.size(), &_tfmd);
MatchData::UP no_match_data;
return DotProductSearch::create(children, _tfmd, false, no_child_match, _weights, std::move(no_match_data));
}
@@ -273,7 +273,7 @@ private:
class WeightIteratorChildrenVerifier : public search::test::DwaIteratorChildrenVerifier {
private:
SearchIterator::UP create(std::vector<DocumentWeightIterator> && children) const override {
- return SearchIterator::UP(DotProductSearch::create(_tfmd, false, _weights, std::move(children)));
+ return DotProductSearch::create(_tfmd, false, _weights, std::move(children));
}
};
