CoverageSaveData

Examples       Related Topics

Description

Takes a snapshot of all coverage data recorded since a program started, or since the last call to CoverageClearData. PureCoverage continues to record data.

Syntax

int CoverageSaveData(void)

Returns

1

Data is saved.

0

Data is not saved.

Notes

§      You can click images\snapic.gif in the PureCoverage toolbar to take a snapshot of the current data as the program runs.

§      If you run a program that contains this function from the command line, and you also use the /SaveData or /SaveTextData options, the PureCoverage data file (.cfy) or ASCII text file (.txt) that PureCoverage creates contains only the data that was current when CoverageSaveData was called. The file does not contain data for the entire run.

§      Use this function for native-compiled (unmanaged).

§      Do not use this function (a PureCoverage API function) for Sun Java or .NET managed code programs. Use instead the corresponding PureAPI function.

(C) Copyright IBM Corporation 1993, 2010.