Function: ert--test-name-button-action

ert--test-name-button-action is a byte-compiled function defined in ert.el.gz.

Signature

(ert--test-name-button-action BUTTON)

Documentation

Find the definition of the test BUTTON belongs to, in another window.

Source Code

;; Defined in /usr/src/emacs/lisp/emacs-lisp/ert.el.gz
(defun ert--test-name-button-action (button)
  "Find the definition of the test BUTTON belongs to, in another window."
  ;; work with either ert-insert-test-name-button or help-xref-button
  (let ((name (or (button-get button 'ert-test-name)
                  (car (button-get button 'help-args)))))
    (ert-find-test-other-window name)))