jstests/core/index_filter_catalog_independent.js
/*
 * Check that there's one index filter on the given query which allows only 'indexes'.
 */
Check that there's one index filter on the given query which allows only 'indexes'.
Check that there ' s one index filter on the given query which allows only ' indexes ' .
function assertOneIndexFilter(query, indexes) {
    let res = assert.commandWorked(db.runCommand({planCacheListFilters: collName}));
    assert.eq(res.filters.length, 1);
    assert.eq(res.filters[0].query, query);
    assert.eq(res.filters[0].indexes, indexes);
}
function assertOneIndexFilter ( query , indexes ) { let res = assert . commandWorked ( db . runCommand ( { planCacheListFilters : collName } ) ) ; assert . eq ( res . filters . length , 1 ) ; assert . eq ( res . filters [ 0 ] . query , query ) ; assert . eq ( res . filters [ 0 ] . indexes , indexes ) ; }
Check that there's one index filter on the given query which allows only 'indexes'.
Check that there ' s one index filter on the given query which allows only ' indexes ' .