diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2023-12-12 13:47:11 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2023-12-12 13:47:11 +0000 |
commit | 81487d4843b65c66f2f14a3346f3b6b51b85e245 (patch) | |
tree | f5fd47779d893464b0938eac46a2d12afd9b1daf /searchcore/src/tests/proton | |
parent | 3f54d4088502406eda15288bde29a16f6c810751 (diff) |
Unify on using reference where possible.
Diffstat (limited to 'searchcore/src/tests/proton')
-rw-r--r-- | searchcore/src/tests/proton/matching/match_phase_limiter/match_phase_limiter_test.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/searchcore/src/tests/proton/matching/match_phase_limiter/match_phase_limiter_test.cpp b/searchcore/src/tests/proton/matching/match_phase_limiter/match_phase_limiter_test.cpp index 67490c03985..824ee891873 100644 --- a/searchcore/src/tests/proton/matching/match_phase_limiter/match_phase_limiter_test.cpp +++ b/searchcore/src/tests/proton/matching/match_phase_limiter/match_phase_limiter_test.cpp @@ -69,7 +69,7 @@ struct MockBlueprint : SimpleLeafBlueprint { FieldSpec spec; vespalib::string term; bool postings_fetched = false; - search::queryeval::ExecuteInfo postings_strict = search::queryeval::ExecuteInfo::FALSE; + bool postings_strict = false; MockBlueprint(const FieldSpec &spec_in, const vespalib::string &term_in) : SimpleLeafBlueprint(spec_in), spec(spec_in), term(term_in) { @@ -78,7 +78,7 @@ struct MockBlueprint : SimpleLeafBlueprint { SearchIterator::UP createLeafSearch(const TermFieldMatchDataArray &tfmda, bool strict) const override { if (postings_fetched) { - EXPECT_EQUAL(postings_strict.is_strict(), strict); + EXPECT_EQUAL(postings_strict, strict); } return std::make_unique<MockSearch>(spec, term, strict, tfmda, postings_fetched); } @@ -86,7 +86,7 @@ struct MockBlueprint : SimpleLeafBlueprint { return create_default_filter(strict, constraint); } void fetchPostings(const search::queryeval::ExecuteInfo &execInfo) override { - postings_strict = execInfo; + postings_strict = execInfo.is_strict(); postings_fetched = true; } }; |