summaryrefslogtreecommitdiffstats
path: root/searchlib/src/tests/attribute/searchcontext
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2017-02-06 12:27:03 +0100
committerHenning Baldersheim <balder@yahoo-inc.com>2017-02-06 12:27:03 +0100
commitc734ef37ac5903aaee96f025b5e50d4213eb56d3 (patch)
tree9a5649828f1c31a56ff1bb779d93b398be6cbf7e /searchlib/src/tests/attribute/searchcontext
parent61aac4b63bb0fee2f41e936ff7c7b08545ee6001 (diff)
Follow up on naming comments from review by @havardpe
Diffstat (limited to 'searchlib/src/tests/attribute/searchcontext')
-rw-r--r--searchlib/src/tests/attribute/searchcontext/searchcontext.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/searchlib/src/tests/attribute/searchcontext/searchcontext.cpp b/searchlib/src/tests/attribute/searchcontext/searchcontext.cpp
index da53d48c2b1..41d1deda63f 100644
--- a/searchlib/src/tests/attribute/searchcontext/searchcontext.cpp
+++ b/searchlib/src/tests/attribute/searchcontext/searchcontext.cpp
@@ -131,8 +131,8 @@ private:
void checkResultSet(const ResultSet & rs, const DocSet & exp, bool bitVector);
template<typename T, typename A>
- void testInitRange(T key, const vespalib::string & keyAsString, const ConfigMap & cfgs);
- void testInitRange();
+ void testSearchIterator(T key, const vespalib::string &keyAsString, const ConfigMap &cfgs);
+ void testSearchIteratorConformance();
// test search functionality
template <typename V, typename T>
void testFind(const PostingList<V, T> & first);
@@ -630,7 +630,7 @@ private:
};
template<typename T, typename A>
-void SearchContextTest::testInitRange(T key, const vespalib::string & keyAsString, const ConfigMap & cfgs) {
+void SearchContextTest::testSearchIterator(T key, const vespalib::string &keyAsString, const ConfigMap &cfgs) {
for (const auto & cfg : cfgs) {
Verifier<T, A> verifier(key, keyAsString, cfg.first, cfg.second);
@@ -638,10 +638,10 @@ void SearchContextTest::testInitRange(T key, const vespalib::string & keyAsStrin
}
}
-void SearchContextTest::testInitRange() {
- testInitRange<AttributeVector::largeint_t, IntegerAttribute>(42, "42", _integerCfg);
- testInitRange<double, FloatingPointAttribute>(42.42, "42.42", _floatCfg);
- testInitRange<vespalib::string, StringAttribute>("any-key", "any-key", _stringCfg);
+void SearchContextTest::testSearchIteratorConformance() {
+ testSearchIterator<AttributeVector::largeint_t, IntegerAttribute>(42, "42", _integerCfg);
+ testSearchIterator<double, FloatingPointAttribute>(42.42, "42.42", _floatCfg);
+ testSearchIterator<vespalib::string, StringAttribute>("any-key", "any-key", _stringCfg);
}
void
@@ -1880,13 +1880,13 @@ SearchContextTest::Main()
EXPECT_TRUE(true);
testSearch();
- testInitRange();
+ testSearchIterator();
testRangeSearch();
testRangeSearchLimited();
testCaseInsensitiveSearch();
testRegexSearch();
testPrefixSearch();
- testSearchIterator();
+ testSearchIteratorConformance();
testSearchIteratorUnpacking();
TEST_DO(requireThatSearchIsWorkingAfterClearDoc());
TEST_DO(requireThatSearchIsWorkingAfterLoadAndClearDoc());