Skip to content

Commit a0ffde6

Browse files
Cole Scottstylewarning
authored andcommitted
Fix coverage hashmap error caused by sbcl api change
1 parent 4b24b20 commit a0ffde6

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

coverage-report/coverage-report.lisp

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -42,17 +42,7 @@ ql-dist::(ensure-installed (release "fiasco"))
4242
(let ((interesting-files (system-lisp-files *system*))
4343
(base (asdf:system-relative-pathname *system*
4444
"coverage-report/html/")))
45-
;; SB-COVER:REPORT will happily report on everything it has
46-
;; compiled with the code coverage declaration. This maphash will
47-
;; restrict it to only the files in *SYSTEM*. Beware:
48-
;; SB-C:*CODE-COVERAGE-INFO* is not part of the public API; switch
49-
;; to :IF-MATCHES report option in the future.
50-
(maphash (lambda (file data)
51-
(declare (ignore data))
52-
(unless (member file interesting-files :test 'string=)
53-
(remhash file sb-c:*code-coverage-info*)))
54-
sb-c:*code-coverage-info*)
55-
(sb-cover:report base)
45+
(sb-cover:report base :if-matches (lambda (file) (member file interesting-files :test 'string=)))
5646
(let* ((cover (merge-pathnames "cover-index.html" base))
5747
(index (merge-pathnames "index.html" base)))
5848
(rename-file cover index)

0 commit comments

Comments
 (0)