summaryrefslogtreecommitdiff
path: root/src/mongo/dbtests/querytests.cpp
diff options
context:
space:
mode:
authorMark Benvenuto <mark.benvenuto@mongodb.com>2016-05-28 17:55:12 -0400
committerMark Benvenuto <mark.benvenuto@mongodb.com>2016-05-28 17:55:12 -0400
commit6dcdd23dd37ef12c87e71cf59ef01cd82432efe0 (patch)
treec8cfb5acb62c80f375bc37e7d4350382deea6a37 /src/mongo/dbtests/querytests.cpp
parentd4ac5673ea3f6cef4ce9dbcec90e31813997a528 (diff)
downloadmongo-6dcdd23dd37ef12c87e71cf59ef01cd82432efe0.tar.gz
SERVER-23971 Clang-Format code
Diffstat (limited to 'src/mongo/dbtests/querytests.cpp')
-rw-r--r--src/mongo/dbtests/querytests.cpp57
1 files changed, 43 insertions, 14 deletions
diff --git a/src/mongo/dbtests/querytests.cpp b/src/mongo/dbtests/querytests.cpp
index 8cf6d28d1a5..46cc769b1d1 100644
--- a/src/mongo/dbtests/querytests.cpp
+++ b/src/mongo/dbtests/querytests.cpp
@@ -199,7 +199,8 @@ public:
bool ok = cl.runCommand("unittests",
BSON("godinsert"
<< "querytests"
- << "obj" << BSONObj()),
+ << "obj"
+ << BSONObj()),
info);
ASSERT(ok);
@@ -590,7 +591,12 @@ public:
_client.runCommand("unittests",
BSON("create"
<< "querytests.TailableQueryOnId"
- << "capped" << true << "size" << 8192 << "autoIndexId" << true),
+ << "capped"
+ << true
+ << "size"
+ << 8192
+ << "autoIndexId"
+ << true),
info);
insertA(ns, 0);
insertA(ns, 1);
@@ -676,7 +682,10 @@ public:
_client.runCommand("unittests",
BSON("create"
<< "querytests.OplogReplaySlaveReadTill"
- << "capped" << true << "size" << 8192),
+ << "capped"
+ << true
+ << "size"
+ << 8192),
info);
Date_t one = Date_t::fromMillisSinceEpoch(getNextGlobalTimestamp().asLL());
@@ -1285,14 +1294,18 @@ public:
ASSERT_EQUALS(17, _client.findOne(ns(), b.obj())["z"].number());
}
ASSERT_EQUALS(17,
- _client.findOne(ns(),
- BSON("x"
- << "eliot"))["z"].number());
+ _client
+ .findOne(ns(),
+ BSON("x"
+ << "eliot"))["z"]
+ .number());
ASSERT_OK(dbtests::createIndex(&_txn, ns(), BSON("x" << 1)));
ASSERT_EQUALS(17,
- _client.findOne(ns(),
- BSON("x"
- << "eliot"))["z"].number());
+ _client
+ .findOne(ns(),
+ BSON("x"
+ << "eliot"))["z"]
+ .number());
}
};
@@ -1314,7 +1327,8 @@ public:
ctx.db(),
ns(),
fromjson("{ capped : true, size : 2000, max: 10000 }"),
- false).isOK());
+ false)
+ .isOK());
wunit.commit();
}
@@ -1452,7 +1466,11 @@ public:
ASSERT(_client.runCommand("unittests",
BSON("create"
<< "querytests.findingstart"
- << "capped" << true << "$nExtents" << 5 << "autoIndexId"
+ << "capped"
+ << true
+ << "$nExtents"
+ << 5
+ << "autoIndexId"
<< false),
info));
@@ -1499,7 +1517,11 @@ public:
ASSERT(_client.runCommand("unittests",
BSON("create"
<< "querytests.findingstart"
- << "capped" << true << "$nExtents" << 5 << "autoIndexId"
+ << "capped"
+ << true
+ << "$nExtents"
+ << 5
+ << "autoIndexId"
<< false),
info));
@@ -1547,7 +1569,11 @@ public:
ASSERT(_client.runCommand("unittests",
BSON("create"
<< "querytests.findingstart"
- << "capped" << true << "$nExtents" << 5 << "autoIndexId"
+ << "capped"
+ << true
+ << "$nExtents"
+ << 5
+ << "autoIndexId"
<< false),
info));
@@ -1600,7 +1626,10 @@ public:
ASSERT(_client.runCommand("unittests",
BSON("create"
<< "querytests.exhaust"
- << "capped" << true << "size" << 8192),
+ << "capped"
+ << true
+ << "size"
+ << 8192),
info));
_client.insert(ns(), BSON("ts" << 0));
Message message;