summaryrefslogtreecommitdiffstats
path: root/searchlib/src/tests/attribute/imported_search_context
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@oath.com>2018-05-24 14:45:26 +0200
committerHenning Baldersheim <balder@oath.com>2018-05-24 14:45:26 +0200
commit4a4d52a9ce5b955f3242fd70b131bafa14838310 (patch)
tree232023acef8ba78d32e3f1fd63e8db22fd8aa2cc /searchlib/src/tests/attribute/imported_search_context
parentcd591ff3541fed92f56ecc6c4f76ffd21dc60512 (diff)
Renaming and constification after code review comments.
Diffstat (limited to 'searchlib/src/tests/attribute/imported_search_context')
-rw-r--r--searchlib/src/tests/attribute/imported_search_context/imported_search_context_test.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/searchlib/src/tests/attribute/imported_search_context/imported_search_context_test.cpp b/searchlib/src/tests/attribute/imported_search_context/imported_search_context_test.cpp
index bb9d9960d08..0a02824e77a 100644
--- a/searchlib/src/tests/attribute/imported_search_context/imported_search_context_test.cpp
+++ b/searchlib/src/tests/attribute/imported_search_context/imported_search_context_test.cpp
@@ -301,7 +301,7 @@ TEST_F("Strict iterator handles seek outside of LID space", ArrayValueFixture) {
EXPECT_TRUE(iter->isAtEnd());
}
-TEST_F("cmp() performs GID mapping and forwards to target attribute", SingleValueFixture) {
+TEST_F("matches() performs GID mapping and forwards to target attribute", SingleValueFixture) {
auto ctx = f.create_context(word_term("5678"));
EXPECT_FALSE(ctx->matches(DocId(2)));
EXPECT_TRUE(ctx->matches(DocId(3)));
@@ -309,7 +309,7 @@ TEST_F("cmp() performs GID mapping and forwards to target attribute", SingleValu
EXPECT_TRUE(ctx->matches(DocId(5)));
}
-TEST_F("cmp(weight) performs GID mapping and forwards to target attribute", WsetValueFixture) {
+TEST_F("matches(weight) performs GID mapping and forwards to target attribute", WsetValueFixture) {
auto ctx = f.create_context(word_term("foo"));
int32_t weight = 0;
EXPECT_FALSE(ctx->matches(DocId(1), weight));