Appending vs. Overriding of Counter Data

When a data file is reused in new tests, the counter data written out is added up to the existing counter data if the source file was not changed.

The decision is made separately for each source file. In the data file, three scenarios are possible:

  1. It does not contain coverage data for the source file. In this case, a new counter data block is written to the data file.
  2. It does contain coverage data, but from different version of the source file. In this case, the counters in the data file are overwritten.
  3. It does contain coverage data from the same version of the source file. In this case, the counters are added up.