Merge two code-coverage-data objects.
hcl
merge-code-coverage-data ccd1 ccd2 name => result
destructive-merge-code-coverage-data ccd1 ccd2 => ccd1
ccd1⇩ | |
ccd2⇩ |
A code-coverage-data object or t . |
name⇩ |
A Lisp object, normally a symbol or a string. |
result |
A code-coverage-data object. |
ccd1 |
A code-coverage-data object. |
The function merge-code-coverage-data
and destructive-merge-code-coverage-data
merge two code-coverage-data objects.
Merging means taking all the files from ccd1 together with those files from ccd2 which do not have information in ccd1. For files that appear in both ccd1 and ccd2, the information in ccd2 is ignored.
merge-code-coverage-data
creates a new code-coverage-data object containing the information for each file, and with name name.
destructive-merge-code-coverage-data
adds to ccd1 those files from ccd2 which are not already there, and returns ccd1.
If either of the datas is the internal code-coverage-data object, the file information is copied, so it does not change anymore. Otherwise it just copies the pointer, because the file information is read-only.
LispWorks® User Guide and Reference Manual - 01 Dec 2021 19:30:35