Function: cider-test--handle-event

cider-test--handle-event is a byte-compiled function defined in cider-test.el.

Signature

(cider-test--handle-event EVENT REPORT SILENT &optional ONE-NS)

Documentation

Show the progress carried by the test EVENT of a streamed run.

REPORT is the report buffer the run has put failures into so far, or nil. If SILENT is non-nil, don't echo the progress. ONE-NS non-nil means the run is for a single namespace, which was announced as the run started, so it isn't announced again. Return the report buffer.

Source Code

;; Defined in ~/.emacs.d/elpa/cider-20261106.1225/cider-test.el
(defun cider-test--handle-event (event report silent &optional one-ns)
  "Show the progress carried by the test EVENT of a streamed run.
REPORT is the report buffer the run has put failures into so far, or nil.
If SILENT is non-nil, don't echo the progress.  ONE-NS non-nil means the
run is for a single namespace, which was announced as the run started,
so it isn't announced again.  Return the report buffer."
  (nrepl-dbind-response event (type ns results summary)
    (pcase type
      ("begin-ns"
       (unless (or silent one-ns)
         (cider-test-echo-running ns)))
      ("end-var"
       (unless silent
         (cider-test--echo-progress ns summary))
       (when results
         (unless (buffer-live-p report)
           (setq report (cider-test--start-streamed-report)))
         (cider-test--render-streamed-problems report ns results))))
    report))