jstests/replsets/txn_override_unittests.js
/**
 * Run the post-command function for the given command, if one has been set, and clear it once
 * used.
 */
Run the post-command function for the given command, if one has been set, and clear it once
used.
Run the post - command function for the given command if one has been set and clear it once used .
function runPostCommandFunc(cmdName) {
    assert(!runCommandOverrideDenylistedCommands.includes(cmdName));
    if (postCommandFuncs[cmdName]) {
        jsTestLog("Running post-command function for " + cmdName);
        try {
            postCommandFuncs[cmdName]();
        } finally {
            clearPostCommandFunc(cmdName);
        }
    }
}
function runPostCommandFunc ( cmdName ) { assert ( ! runCommandOverrideDenylistedCommands . includes ( cmdName ) ) ; if ( postCommandFuncs [ cmdName ] ) { jsTestLog ( "Running post-command function for " + cmdName ) ; try { postCommandFuncs [ cmdName ] ( ) ; } finally { clearPostCommandFunc ( cmdName ) ; } } }
Run the post-command function for the given command, if one has been set, and clear it once
 used.
Run the post - command function for the given command if one has been set and clear it once used .