summaryrefslogtreecommitdiff
path: root/src/mongo/db/pipeline/expression_test.cpp
diff options
context:
space:
mode:
authorBenety Goh <benety@mongodb.com>2018-11-08 15:48:37 -0500
committerBenety Goh <benety@mongodb.com>2018-11-08 15:48:37 -0500
commitc9ba97851eb8dc39f5f2bc5626d08e0f1d099cca (patch)
tree158e992124c6fd72fb2e2a769dd1df21d1e8cb61 /src/mongo/db/pipeline/expression_test.cpp
parent77ea0900b59de5f49953d4e1c2f0be4532e448c4 (diff)
downloadmongo-c9ba97851eb8dc39f5f2bc5626d08e0f1d099cca.tar.gz
SERVER-37909 fix lint
Diffstat (limited to 'src/mongo/db/pipeline/expression_test.cpp')
-rw-r--r--src/mongo/db/pipeline/expression_test.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mongo/db/pipeline/expression_test.cpp b/src/mongo/db/pipeline/expression_test.cpp
index 974017a7121..94f9de8329f 100644
--- a/src/mongo/db/pipeline/expression_test.cpp
+++ b/src/mongo/db/pipeline/expression_test.cpp
@@ -3628,7 +3628,7 @@ public:
const BSONObj obj = BSON(asserters[i].getString() << args);
VariablesParseState vps = expCtx->variablesParseState;
ASSERT_THROWS(
- [&]{
+ [&] {
// NOTE: parse and evaluatation failures are treated the
// same
const intrusive_ptr<Expression> expr =
@@ -4159,7 +4159,7 @@ TEST(ExpressionSubstrTest, ThrowsWithNegativeStart) {
const auto str = "abcdef"_sd;
const auto expr =
Expression::parseExpression(expCtx, BSON("$substrCP" << BSON_ARRAY(str << -5 << 1)), vps);
- ASSERT_THROWS([&]{ expr->evaluate(Document()); }(), AssertionException);
+ ASSERT_THROWS([&] { expr->evaluate(Document()); }(), AssertionException);
}
} // namespace Substr
@@ -4173,7 +4173,7 @@ TEST(ExpressionSubstrCPTest, DoesThrowWithBadContinuationByte) {
const auto continuationByte = "\x80\x00"_sd;
const auto expr = Expression::parseExpression(
expCtx, BSON("$substrCP" << BSON_ARRAY(continuationByte << 0 << 1)), vps);
- ASSERT_THROWS([&]{ expr->evaluate(Document()); }(), AssertionException);
+ ASSERT_THROWS([&] { expr->evaluate(Document()); }(), AssertionException);
}
TEST(ExpressionSubstrCPTest, DoesThrowWithInvalidLeadingByte) {
@@ -4183,7 +4183,7 @@ TEST(ExpressionSubstrCPTest, DoesThrowWithInvalidLeadingByte) {
const auto leadingByte = "\xFF\x00"_sd;
const auto expr = Expression::parseExpression(
expCtx, BSON("$substrCP" << BSON_ARRAY(leadingByte << 0 << 1)), vps);
- ASSERT_THROWS([&]{ expr->evaluate(Document()); }(), AssertionException);
+ ASSERT_THROWS([&] { expr->evaluate(Document()); }(), AssertionException);
}
TEST(ExpressionSubstrCPTest, WithStandardValue) {
@@ -5288,7 +5288,7 @@ public:
const BSONObj obj = BSON(asserters[i].getString() << args);
VariablesParseState vps = expCtx->variablesParseState;
ASSERT_THROWS(
- [&]{
+ [&] {
// NOTE: parse and evaluatation failures are treated the
// same
const intrusive_ptr<Expression> expr =