jstests/sharding/resharding_metrics_increment.js
// then the corresponding value in `dict` must be equal to that value.
then the corresponding value in `dict` must be equal to that value.
then the corresponding value in ` dict ` must be equal to that value .
function verifyDict(dict, expected) {
    for (var key in expected) {
        assert(dict.hasOwnProperty(key), `Missing ${key} in ${tojson(dict)}`);
        const expectedValue = expected[key];
        if (expected[key] === undefined) {
            jsTest.log(`${key}: ${tojson(dict[key])}`);
            continue;
        } else if (key === "oplogEntriesFetched" || key === "oplogEntriesApplied") {
            assert.gte(dict[key], expected[key]);
        } else {
            assert.eq(dict[key],
                      expected[key],
                      `Expected the value for ${key} to be ${expectedValue}: ${tojson(dict)}`);
        }
    }
}
function verifyDict ( dict , expected ) { for ( var key in expected ) { assert ( dict . hasOwnProperty ( key ) , ` ${ key } ${ tojson ( dict ) } ` ) ; const expectedValue = expected [ key ] ; if ( expected [ key ] === undefined ) { jsTest . log ( ` ${ key } ${ tojson ( dict [ key ] ) } ` ) ; continue ; } else if ( key === "oplogEntriesFetched" || key === "oplogEntriesApplied" ) { assert . gte ( dict [ key ] , expected [ key ] ) ; } else { assert . eq ( dict [ key ] , expected [ key ] , ` ${ key } ${ expectedValue } ${ tojson ( dict ) } ` ) ; } } }
then the corresponding value in `dict` must be equal to that value.
then the corresponding value in ` dict ` must be equal to that value .
// The fetcher writes no-op entries for each getMore that returns an empty batch. We // won't know how many getMores it called however, so we can only check that the metrics // are gte the number of writes we're aware of.