Function: cider-test--move-to-result

cider-test--move-to-result is a byte-compiled function defined in cider-test.el.

Signature

(cider-test--move-to-result SEARCH-FN)

Documentation

Move point to the adjacent test result, if one exists.

SEARCH-FN is previous-single-property-change or next-single-property-change and selects the direction.

Source Code

;; Defined in ~/.emacs.d/elpa/cider-20260822.1520/cider-test.el
(defun cider-test--move-to-result (search-fn)
  "Move point to the adjacent test result, if one exists.
SEARCH-FN is `previous-single-property-change' or
`next-single-property-change' and selects the direction."
  (with-current-buffer (get-buffer cider-test-report-buffer)
    (when-let* ((pos (funcall search-fn (point) 'type)))
      (if (get-text-property pos 'type)
          (goto-char pos)
        (when-let* ((pos (funcall search-fn pos 'type)))
          (goto-char pos))))))