Function: cider-test--add-fringe-indicator

cider-test--add-fringe-indicator is a byte-compiled function defined in cider-test.el.

Signature

(cider-test--add-fringe-indicator BUFFER LINE PASSED)

Documentation

Put a pass/fail test fringe indicator on the form at LINE in BUFFER.

PASSED selects the green (success) or red (failure) marker. Does nothing when LINE is nil.

Source Code

;; Defined in ~/.emacs.d/elpa/cider-20260822.1520/cider-test.el
(defun cider-test--add-fringe-indicator (buffer line passed)
  "Put a pass/fail test fringe indicator on the form at LINE in BUFFER.
PASSED selects the green (success) or red (failure) marker.  Does nothing
when LINE is nil."
  (when line
    (with-current-buffer buffer
      (save-excursion
        (goto-char (point-min))
        (forward-line (1- line))
        (cider--make-overlay (line-beginning-position) (line-end-position)
                             'cider-test-fringe-indicator
                             'before-string (if passed
                                                cider--fringe-overlay-good
                                              cider--fringe-overlay-bad))))))