File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change 100
100
(defun cider-open-classpath-entry ()
101
101
" Open a classpath entry."
102
102
(interactive )
103
+ (cider-ensure-connected)
104
+ (cider-ensure-op-supported " classpath" )
103
105
(when-let ((entry (completing-read " Classpath entries: " (cider-sync-request:classpath))))
104
106
(find-file-other-window entry)))
105
107
Original file line number Diff line number Diff line change 10
10
(ert-deftest cider-classpath-unsupported-op ()
11
11
(noflet ((cider-ensure-op-supported (op) nil ))
12
12
(should-error (cider-classpath) :type 'user-error )))
13
+
14
+ (ert-deftest cider-open-classpath-entry-not-connected ()
15
+ (noflet ((cider-connected-p () nil ))
16
+ (should-error (cider-open-classpath-entry) :type 'user-error )))
17
+
18
+ (ert-deftest cider-open-classpath-entry-unsupported-op ()
19
+ (noflet ((cider-ensure-op-supported (op) nil ))
20
+ (should-error (cider-open-classpath-entry) :type 'user-error )))
You can’t perform that action at this time.
0 commit comments