Skip to content

Commit e2c10c7

Browse files
committed
removed single collectors refernce from get-tests so that
it would work for Zach / Quicklisp re #8
1 parent 2c9012e commit e2c10c7

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

lisp-unit.lisp

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@
124124

125125
(defun get-tests (&key tests tags package reintern-package
126126
exclude-tests exclude-tags
127-
&aux (db *test-db*))
127+
&aux (db *test-db*) out)
128128
"finds tests by names, tags, and package
129129
130130
if reintern-package is provided, reintern all symbols provided for tests
@@ -145,8 +145,12 @@
145145
;; defaults to pulling up all tests in the current package
146146
(when (and (null tests) (null tags) (null package))
147147
(setf package (package-name *package*)))
148-
(collectors:with-collector-output (out)
149-
(collectors:with-appender (gathered)
148+
(let ((gathered))
149+
(flet ((gathered (&rest them)
150+
(when them
151+
(setf gathered
152+
(alexandria:flatten (list gathered them))))
153+
gathered))
150154
(iter (for p in (alexandria:ensure-list package))
151155
(gathered (head (gethash (find-package p) (package-index db)))))
152156
(iter (for tag in (alexandria:ensure-list tags))
@@ -164,9 +168,10 @@
164168
(iter (for test in (gathered))
165169
(unless (or (null test)
166170
(excluded? test)
167-
(find test (out)))
168-
(out test))))
169-
))))
171+
(find test out-tests))
172+
(collect test into out-tests))
173+
(finally
174+
(return out-tests))))))))
170175

171176

172177

0 commit comments

Comments
 (0)