diff options
author | Charlie Swanson <charlie.swanson@mongodb.com> | 2017-12-19 15:13:58 -0500 |
---|---|---|
committer | Charlie Swanson <charlie.swanson@mongodb.com> | 2017-12-19 17:29:29 -0500 |
commit | a318fd1bc13e59a87def8de0061a08ec0dd134eb (patch) | |
tree | 55fc10b1fe53d07a802aa5a40a643d8b6d27c921 /src/mongo/db/pipeline/document_source_graph_lookup_test.cpp | |
parent | b5a2cc0fec6ac30b1a0196da5feb41d85a8b76c3 (diff) | |
download | mongo-a318fd1bc13e59a87def8de0061a08ec0dd134eb.tar.gz |
SERVER-32190 Shorten MongoDProcessInterface to MongoDInterface.
Similarly shorten other similar MongoProcessInterface implementation's
names, e.g. MongoSProcessInterface -> MongoSInterface and
MockMongoProcessInterface -> MockMongoInterface.
Diffstat (limited to 'src/mongo/db/pipeline/document_source_graph_lookup_test.cpp')
-rw-r--r-- | src/mongo/db/pipeline/document_source_graph_lookup_test.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
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<DocumentSource::GetNextResult> results) + MockMongoInterface(std::deque<DocumentSource::GetNextResult> results) : _results(std::move(results)) {} StatusWith<std::unique_ptr<Pipeline, PipelineDeleter>> makePipeline( @@ -101,7 +101,7 @@ TEST_F(DocumentSourceGraphLookUpTest, NamespaceString fromNs("test", "graph_lookup"); expCtx->setResolvedNamespace(fromNs, {fromNs, std::vector<BSONObj>{}}); - expCtx->mongoProcessInterface = std::make_shared<MockMongoProcess>(std::move(fromContents)); + expCtx->mongoProcessInterface = std::make_shared<MockMongoInterface>(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<BSONObj>{}}); - expCtx->mongoProcessInterface = std::make_shared<MockMongoProcess>(std::move(fromContents)); + expCtx->mongoProcessInterface = std::make_shared<MockMongoInterface>(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<BSONObj>{}}); - expCtx->mongoProcessInterface = std::make_shared<MockMongoProcess>(std::move(fromContents)); + expCtx->mongoProcessInterface = std::make_shared<MockMongoInterface>(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<BSONObj>{}}); - expCtx->mongoProcessInterface = std::make_shared<MockMongoProcess>(std::move(fromContents)); + expCtx->mongoProcessInterface = std::make_shared<MockMongoInterface>(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<BSONObj>{}}); - expCtx->mongoProcessInterface = std::make_shared<MockMongoProcess>(std::move(fromContents)); + expCtx->mongoProcessInterface = std::make_shared<MockMongoInterface>(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<BSONObj>{}}); - expCtx->mongoProcessInterface = std::make_shared<MockMongoProcess>(std::move(fromContents)); + expCtx->mongoProcessInterface = std::make_shared<MockMongoInterface>(std::move(fromContents)); const bool preserveNullAndEmptyArrays = false; const boost::optional<std::string> includeArrayIndex = boost::none; @@ -394,7 +394,7 @@ TEST_F(DocumentSourceGraphLookUpTest, GraphLookupShouldReportAsFieldIsModified) NamespaceString fromNs("test", "foreign"); expCtx->setResolvedNamespace(fromNs, {fromNs, std::vector<BSONObj>{}}); expCtx->mongoProcessInterface = - std::make_shared<MockMongoProcess>(std::deque<DocumentSource::GetNextResult>{}); + std::make_shared<MockMongoInterface>(std::deque<DocumentSource::GetNextResult>{}); auto graphLookupStage = DocumentSourceGraphLookUp::create(expCtx, fromNs, @@ -418,7 +418,7 @@ TEST_F(DocumentSourceGraphLookUpTest, GraphLookupShouldReportFieldsModifiedByAbs NamespaceString fromNs("test", "foreign"); expCtx->setResolvedNamespace(fromNs, {fromNs, std::vector<BSONObj>{}}); expCtx->mongoProcessInterface = - std::make_shared<MockMongoProcess>(std::deque<DocumentSource::GetNextResult>{}); + std::make_shared<MockMongoInterface>(std::deque<DocumentSource::GetNextResult>{}); 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<BSONObj>{}}); std::deque<DocumentSource::GetNextResult> fromContents{Document{{"_id", 0}, {"to", true}}, Document{{"_id", 1}, {"to", false}}}; - expCtx->mongoProcessInterface = std::make_shared<MockMongoProcess>(std::move(fromContents)); + expCtx->mongoProcessInterface = std::make_shared<MockMongoInterface>(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<BSONObj>{}}); - expCtx->mongoProcessInterface = std::make_shared<MockMongoProcess>(std::move(fromContents)); + expCtx->mongoProcessInterface = std::make_shared<MockMongoInterface>(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<BSONObj>{}}); - expCtx->mongoProcessInterface = std::make_shared<MockMongoProcess>(std::move(fromContents)); + expCtx->mongoProcessInterface = std::make_shared<MockMongoInterface>(std::move(fromContents)); auto graphLookupStage = DocumentSourceGraphLookUp::create(expCtx, fromNs, |