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

NextPrevUpTopContentsIndex

merge-code-coverage-data

destructive-merge-code-coverage-data

Functions
Summary

Merge two code-coverage-data objects.

Package

hcl

Signature

merge-code-coverage-data ccd1 ccd2 name => result

destructive-merge-code-coverage-data ccd1 ccd2 => ccd1

Arguments

ccd1

A code-coverage-data object or (for merge-code-coverage-data only) t.

ccd2

A code-coverage-data object or t.

name

A Lisp object, normally a symbol or a string.

Values

result

A code-coverage-data object.

Description

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.

See also

Code Coverage
code-coverage-data


LispWorks User Guide and Reference Manual - 20 Sep 2017

NextPrevUpTopContentsIndex