From a318fd1bc13e59a87def8de0061a08ec0dd134eb Mon Sep 17 00:00:00 2001 From: Charlie Swanson Date: Tue, 19 Dec 2017 15:13:58 -0500 Subject: SERVER-32190 Shorten MongoDProcessInterface to MongoDInterface. Similarly shorten other similar MongoProcessInterface implementation's names, e.g. MongoSProcessInterface -> MongoSInterface and MockMongoProcessInterface -> MockMongoInterface. --- .../pipeline/document_source_graph_lookup_test.cpp | 26 +++++++++++----------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'src/mongo/db/pipeline/document_source_graph_lookup_test.cpp') diff --git a/src/mongo/db/pipeline/document_source_graph_lookup_test.cpp b/src/mongo/db/pipeline/document_source_graph_lookup_test.cpp index 6dc9849baff..05a62606bb6 100644 --- a/src/mongo/db/pipeline/document_source_graph_lookup_test.cpp +++ b/src/mongo/db/pipeline/document_source_graph_lookup_test.cpp @@ -56,9 +56,9 @@ using DocumentSourceGraphLookUpTest = AggregationContextFixture; * A MongoProcessInterface use for testing that supports making pipelines with an initial * DocumentSourceMock source. */ -class MockMongoProcess final : public StubMongoProcessInterface { +class MockMongoInterface final : public StubMongoProcessInterface { public: - MockMongoProcess(std::deque results) + MockMongoInterface(std::deque results) : _results(std::move(results)) {} StatusWith> makePipeline( @@ -101,7 +101,7 @@ TEST_F(DocumentSourceGraphLookUpTest, NamespaceString fromNs("test", "graph_lookup"); expCtx->setResolvedNamespace(fromNs, {fromNs, std::vector{}}); - expCtx->mongoProcessInterface = std::make_shared(std::move(fromContents)); + expCtx->mongoProcessInterface = std::make_shared(std::move(fromContents)); auto graphLookupStage = DocumentSourceGraphLookUp::create(expCtx, fromNs, @@ -129,7 +129,7 @@ TEST_F(DocumentSourceGraphLookUpTest, NamespaceString fromNs("test", "graph_lookup"); expCtx->setResolvedNamespace(fromNs, {fromNs, std::vector{}}); - expCtx->mongoProcessInterface = std::make_shared(std::move(fromContents)); + expCtx->mongoProcessInterface = std::make_shared(std::move(fromContents)); auto graphLookupStage = DocumentSourceGraphLookUp::create(expCtx, fromNs, @@ -157,7 +157,7 @@ TEST_F(DocumentSourceGraphLookUpTest, NamespaceString fromNs("test", "graph_lookup"); expCtx->setResolvedNamespace(fromNs, {fromNs, std::vector{}}); - expCtx->mongoProcessInterface = std::make_shared(std::move(fromContents)); + expCtx->mongoProcessInterface = std::make_shared(std::move(fromContents)); auto unwindStage = DocumentSourceUnwind::create(expCtx, "results", false, boost::none); auto graphLookupStage = DocumentSourceGraphLookUp::create(expCtx, @@ -200,7 +200,7 @@ TEST_F(DocumentSourceGraphLookUpTest, NamespaceString fromNs("test", "graph_lookup"); expCtx->setResolvedNamespace(fromNs, {fromNs, std::vector{}}); - expCtx->mongoProcessInterface = std::make_shared(std::move(fromContents)); + expCtx->mongoProcessInterface = std::make_shared(std::move(fromContents)); auto graphLookupStage = DocumentSourceGraphLookUp::create(expCtx, fromNs, @@ -264,7 +264,7 @@ TEST_F(DocumentSourceGraphLookUpTest, ShouldPropagatePauses) { NamespaceString fromNs("test", "foreign"); expCtx->setResolvedNamespace(fromNs, {fromNs, std::vector{}}); - expCtx->mongoProcessInterface = std::make_shared(std::move(fromContents)); + expCtx->mongoProcessInterface = std::make_shared(std::move(fromContents)); auto graphLookupStage = DocumentSourceGraphLookUp::create(expCtx, fromNs, @@ -330,7 +330,7 @@ TEST_F(DocumentSourceGraphLookUpTest, ShouldPropagatePausesWhileUnwinding) { NamespaceString fromNs("test", "foreign"); expCtx->setResolvedNamespace(fromNs, {fromNs, std::vector{}}); - expCtx->mongoProcessInterface = std::make_shared(std::move(fromContents)); + expCtx->mongoProcessInterface = std::make_shared(std::move(fromContents)); const bool preserveNullAndEmptyArrays = false; const boost::optional includeArrayIndex = boost::none; @@ -394,7 +394,7 @@ TEST_F(DocumentSourceGraphLookUpTest, GraphLookupShouldReportAsFieldIsModified) NamespaceString fromNs("test", "foreign"); expCtx->setResolvedNamespace(fromNs, {fromNs, std::vector{}}); expCtx->mongoProcessInterface = - std::make_shared(std::deque{}); + std::make_shared(std::deque{}); auto graphLookupStage = DocumentSourceGraphLookUp::create(expCtx, fromNs, @@ -418,7 +418,7 @@ TEST_F(DocumentSourceGraphLookUpTest, GraphLookupShouldReportFieldsModifiedByAbs NamespaceString fromNs("test", "foreign"); expCtx->setResolvedNamespace(fromNs, {fromNs, std::vector{}}); expCtx->mongoProcessInterface = - std::make_shared(std::deque{}); + std::make_shared(std::deque{}); auto unwindStage = DocumentSourceUnwind::create(expCtx, "results", false, std::string("arrIndex")); auto graphLookupStage = @@ -449,7 +449,7 @@ TEST_F(DocumentSourceGraphLookUpTest, GraphLookupWithComparisonExpressionForStar expCtx->setResolvedNamespace(fromNs, {fromNs, std::vector{}}); std::deque fromContents{Document{{"_id", 0}, {"to", true}}, Document{{"_id", 1}, {"to", false}}}; - expCtx->mongoProcessInterface = std::make_shared(std::move(fromContents)); + expCtx->mongoProcessInterface = std::make_shared(std::move(fromContents)); auto graphLookupStage = DocumentSourceGraphLookUp::create( expCtx, @@ -512,7 +512,7 @@ TEST_F(DocumentSourceGraphLookUpTest, ShouldExpandArraysAtEndOfConnectFromField) NamespaceString fromNs("test", "graph_lookup"); expCtx->setResolvedNamespace(fromNs, {fromNs, std::vector{}}); - expCtx->mongoProcessInterface = std::make_shared(std::move(fromContents)); + expCtx->mongoProcessInterface = std::make_shared(std::move(fromContents)); auto graphLookupStage = DocumentSourceGraphLookUp::create(expCtx, fromNs, @@ -584,7 +584,7 @@ TEST_F(DocumentSourceGraphLookUpTest, ShouldNotExpandArraysWithinArraysAtEndOfCo NamespaceString fromNs("test", "graph_lookup"); expCtx->setResolvedNamespace(fromNs, {fromNs, std::vector{}}); - expCtx->mongoProcessInterface = std::make_shared(std::move(fromContents)); + expCtx->mongoProcessInterface = std::make_shared(std::move(fromContents)); auto graphLookupStage = DocumentSourceGraphLookUp::create(expCtx, fromNs, -- cgit v1.2.1