All Manuals > LispWorks User Guide and Reference Manual > 38 The HCL Package

NextPrevUpTopContentsIndex

filter-code-coverage-data

Function
Summary

Filters information from a code-coverage-data object.

Package

hcl

Signature

filter-code-coverage-data ccd filter &key without-stats name => result

Arguments

ccd

A code-coverage-data object or t.

filter

A string, a function or a fbound symbol.

without-stats

A boolean.

name

A Lisp object, normally a symbol or a string.

Values

result

A code-coverage-data object.

Description

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 the 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) which is applied to the namestring of each file. without-stats is ignored in this case.

If filter is a function or a fbound symbol, it is applied to the truename of each file and stats object or only to the truename, depending on without-stats. If without-stats is nil the filter is applied to the truename and a code-coverage-file-stats object for the file. If without-stats is true, the filter is applied only to the truename. 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".

See also

code-coverage-data
code-coverage-file-stats
map-code-coverage-data
Code Coverage


LispWorks User Guide and Reference Manual - 20 Sep 2017

NextPrevUpTopContentsIndex