jstests/sharding/query/agg_mongos_merge.js
/**
 * Throws an assertion if the aggregation specified by 'pipeline' does not produce
 * 'expectedCount' results, or if the merge phase is not performed on the mongoS.
 */
Throws an assertion if the aggregation specified by 'pipeline' does not produce
'expectedCount' results, or if the merge phase is not performed on the mongoS.
Throws an assertion if the aggregation specified by ' pipeline ' does not produce ' expectedCount ' results or if the merge phase is not performed on the mongoS .
function assertMergeOnMongoS({testName, pipeline, batchSize, allowDiskUse, expectedCount}) {
    assertMergeBehaviour({
        testName: testName,
        pipeline: pipeline,
        mergeType: "mongos",
        batchSize: (batchSize || 10),
        allowDiskUse: allowDiskUse,
        expectedCount: expectedCount
    });
}
function assertMergeOnMongoS ( { testName , pipeline , batchSize , allowDiskUse , expectedCount } ) { assertMergeBehaviour ( { testName : testName , pipeline : pipeline , mergeType : "mongos" , batchSize : ( batchSize || 10 ) , allowDiskUse : allowDiskUse , expectedCount : expectedCount } ) ; }
Throws an assertion if the aggregation specified by 'pipeline' does not produce
 'expectedCount' results, or if the merge phase is not performed on the mongoS.
Throws an assertion if the aggregation specified by ' pipeline ' does not produce ' expectedCount ' results or if the merge phase is not performed on the mongoS .