Function: cider-test-stacktrace-for

cider-test-stacktrace-for is a byte-compiled function defined in cider-test.el.

Signature

(cider-test-stacktrace-for NS VAR INDEX)

Documentation

Display stacktrace for the erring NS VAR test with the assertion INDEX.

Source Code

;; Defined in ~/.emacs.d/elpa/cider-20260414.1619/cider-test.el
(defun cider-test-stacktrace-for (ns var index)
  "Display stacktrace for the erring NS VAR test with the assertion INDEX."
  (let (causes)
    (cider-nrepl-send-request
     `("op" "test-stacktrace"
       "ns" ,ns
       "var" ,var
       "index" ,index
       ,@(cider--nrepl-print-request-plist fill-column))
     (lambda (response)
       (nrepl-dbind-response response (class status)
         (cond (class  (setq causes (cons response causes)))
               (status (when causes
                         (cider-stacktrace-render
                          (cider-popup-buffer cider-error-buffer
                                              cider-auto-select-error-buffer
                                              #'cider-stacktrace-mode
                                              'ancillary)
                          (reverse causes)))))))
     cider-test--current-repl)))