Function: ert--results-test-node-or-null-at-point
ert--results-test-node-or-null-at-point is a byte-compiled function
defined in ert.el.gz.
Signature
(ert--results-test-node-or-null-at-point)
Documentation
If point is on a valid ewoc node, return it; return nil otherwise.
To be used in the ERT results buffer.
Source Code
;; Defined in /usr/src/emacs/lisp/emacs-lisp/ert.el.gz
(defun ert--results-test-node-or-null-at-point ()
"If point is on a valid ewoc node, return it; return nil otherwise.
To be used in the ERT results buffer."
(let* ((ewoc ert--results-ewoc)
(node (ewoc-locate ewoc)))
;; `ewoc-locate' will return an arbitrary node when point is on
;; header or footer, or when all nodes are invisible. So we need
;; to validate its return value here.
;;
;; Update: I'm seeing nil being returned in some cases now,
;; perhaps this has been changed?
(if (and node
(>= (point) (ewoc-location node))
(not (ert--ewoc-entry-hidden-p (ewoc-data node))))
node
nil)))