jstests/noPassthrough/sbe_multiplanner_trial_termination.js
// assertion function to override this behavior.
assertion function to override this behavior.
assertion function to override this behavior .
function verifySbeNumReads(allPlans, expectedNumReads, assertionFn = assert.eq) {
    for (let plan of allPlans) {
        assert(plan.hasOwnProperty("totalKeysExamined"), plan);
        assert(plan.hasOwnProperty("totalDocsExamined"), plan);
        const numReads = plan.totalKeysExamined + plan.totalDocsExamined;
        assertionFn(numReads, expectedNumReads, plan);
    }
}
function verifySbeNumReads ( allPlans , expectedNumReads , assertionFn = assert . eq ) { for ( let plan of allPlans ) { assert ( plan . hasOwnProperty ( "totalKeysExamined" ) , plan ) ; assert ( plan . hasOwnProperty ( "totalDocsExamined" ) , plan ) ; const numReads = plan . totalKeysExamined + plan . totalDocsExamined ; assertionFn ( numReads , expectedNumReads , plan ) ; } }
assertion function to override this behavior.
assertion function to override this behavior .
// Infer the number of reads (SBE's equivalent of work units) as the sum of keys and // documents examined.