module SimpleCov

def run_exit_tasks!

Other tags:
    Api: - private
def run_exit_tasks!
  set_exit_exception
  exit_status = SimpleCov.exit_status_from_exception
  SimpleCov.at_exit.call
  # Don't modify the exit status unless the result has already been
  # computed
  exit_status = SimpleCov.process_result(SimpleCov.result, exit_status) if SimpleCov.result?
  # Force exit with stored status (see github issue #5)
  # unless it's nil or 0 (see github issue #281)
  if exit_status&.positive?
    $stderr.printf("SimpleCov failed with exit %<exit_status>d\n", exit_status: exit_status) if print_error_status
    Kernel.exit exit_status
  end
end