summaryrefslogtreecommitdiff
path: root/src/mongo/db/pipeline/lookup_set_cache_test.cpp
diff options
context:
space:
mode:
authorTess Avitabile <tess.avitabile@mongodb.com>2016-12-15 17:36:33 -0500
committerTess Avitabile <tess.avitabile@mongodb.com>2016-12-16 11:34:15 -0500
commitd92892f7ad0a83252c788c08646d05ac46cfeabc (patch)
tree853582cf536d29c8245f25f510afaff6578a178b /src/mongo/db/pipeline/lookup_set_cache_test.cpp
parenteac2ee281217fc98d7aac5439c0dd28b2f782744 (diff)
downloadmongo-d92892f7ad0a83252c788c08646d05ac46cfeabc.tar.gz
SERVER-25992 Remove Value(const char* value) constructor
Diffstat (limited to 'src/mongo/db/pipeline/lookup_set_cache_test.cpp')
-rw-r--r--src/mongo/db/pipeline/lookup_set_cache_test.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/mongo/db/pipeline/lookup_set_cache_test.cpp b/src/mongo/db/pipeline/lookup_set_cache_test.cpp
index cd27aab99a9..ce7503d4c6e 100644
--- a/src/mongo/db/pipeline/lookup_set_cache_test.cpp
+++ b/src/mongo/db/pipeline/lookup_set_cache_test.cpp
@@ -175,18 +175,18 @@ TEST(LookupSetCacheTest, CacheKeysRespectCollation) {
CollatorInterfaceMock collator(CollatorInterfaceMock::MockType::kToLowerString);
LookupSetCache cache(&collator);
- cache.insert(Value("foo"), intToObj(1));
- cache.insert(Value("FOO"), intToObj(2));
- cache.insert(Value("FOOz"), intToObj(3));
+ cache.insert(Value("foo"_sd), intToObj(1));
+ cache.insert(Value("FOO"_sd), intToObj(2));
+ cache.insert(Value("FOOz"_sd), intToObj(3));
{
- auto fooResult = cache[Value("FoO")];
+ auto fooResult = cache[Value("FoO"_sd)];
ASSERT_TRUE(fooResult);
ASSERT_EQ(2U, fooResult->size());
}
{
- auto foozResult = cache[Value("fooZ")];
+ auto foozResult = cache[Value("fooZ"_sd)];
ASSERT_TRUE(foozResult);
ASSERT_EQ(1U, foozResult->size());
}
@@ -198,14 +198,14 @@ TEST(LookupSetCacheTest, CachedValuesDontRespectCollation) {
CollatorInterfaceMock collator(CollatorInterfaceMock::MockType::kToLowerString);
LookupSetCache cache(&collator);
- cache.insert(Value("foo"),
+ cache.insert(Value("foo"_sd),
BSON("foo"
<< "bar"));
- cache.insert(Value("foo"),
+ cache.insert(Value("foo"_sd),
BSON("foo"
<< "BAR"));
- auto fooResult = cache[Value("foo")];
+ auto fooResult = cache[Value("foo"_sd)];
ASSERT_TRUE(fooResult);
ASSERT_EQ(2U, fooResult->size());
}