File tree Expand file tree Collapse file tree 1 file changed +11
-6
lines changed
Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Original file line number Diff line number Diff line change 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
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))
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
You can’t perform that action at this time.
0 commit comments