Function: ert--results-update-after-test-redefinition

ert--results-update-after-test-redefinition is a byte-compiled function defined in ert.el.gz.

Signature

(ert--results-update-after-test-redefinition POS NEW-TEST)

Documentation

Update results buffer after the test at pos POS has been redefined.

Also updates the stats object. NEW-TEST is the new test definition.

Source Code

;; Defined in /usr/src/emacs/lisp/emacs-lisp/ert.el.gz
(defun ert--results-update-after-test-redefinition (pos new-test)
  "Update results buffer after the test at pos POS has been redefined.

Also updates the stats object.  NEW-TEST is the new test
definition."
  (let* ((stats ert--results-stats)
         (ewoc ert--results-ewoc)
         (node (ewoc-nth ewoc pos))
         (entry (ewoc-data node)))
    (ert--stats-set-test-and-result stats pos new-test nil)
    (setf (ert--ewoc-entry-test entry) new-test
          (aref ert--results-progress-bar-string pos) (ert-char-for-test-result
                                                       nil t))
    (ewoc-invalidate ewoc node))
  nil)