Filters information from a code-coverage-data object.
hcl
filter-code-coverage-data ccd filter &key without-stats name => result
ccd⇩ |
A code-coverage-data object or t . |
filter⇩ |
A string or a function designator. |
without-stats⇩ |
A boolean. |
name⇩ |
A Lisp object, normally a symbol or a string. |
result |
A code-coverage-data object. |
The function filter-code-coverage-data
creates a new code-coverage-data object with information for some of the files in the argument ccd, as determined by filter. If ccd is t
, this is interpreted as the internal code-coverage-data object.
If filter is a string, it is interpreted as a regexp (see find-regexp-in-string) matched against the namestring of each file. without-stats is ignored in this case.
If filter is a function designator, it is called with the truename of each file if without-stats is true and with the truename of each file and a code-coverage-file-stats object for the file if without-stats is false. The default value of without-stats is nil
.
name is the name supplied to the new code-coverage-data object. The default value of name is "Filter".
code-coverage-data
code-coverage-file-stats
map-code-coverage-data
10 Code Coverage
LispWorks® User Guide and Reference Manual - 01 Dec 2021 19:30:35