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 was not performed on a shard.
 */
Throws an assertion if the aggregation specified by 'pipeline' does not produce
'expectedCount' results, or if the merge phase was not performed on a shard.
Throws an assertion if the aggregation specified by ' pipeline ' does not produce ' expectedCount ' results or if the merge phase was not performed on a shard .
function assertMergeOnMongoD(
    {testName, pipeline, mergeType, batchSize, allowDiskUse, expectedCount}) {
    assertMergeBehaviour({
        testName: testName,
        pipeline: pipeline,
        mergeType: (mergeType || "anyShard"),
        batchSize: (batchSize || 10),
        allowDiskUse: allowDiskUse,
        expectedCount: expectedCount
    });
}
function assertMergeOnMongoD ( { testName , pipeline , mergeType , batchSize , allowDiskUse , expectedCount } ) { assertMergeBehaviour ( { testName : testName , pipeline : pipeline , mergeType : ( mergeType || "anyShard" ) , 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 was not performed on a shard.
Throws an assertion if the aggregation specified by ' pipeline ' does not produce ' expectedCount ' results or if the merge phase was not performed on a shard .