Version 1 (modified by GlennHumphrey, on 09/05/09 at 00:06:42) (diff) |
---|
Coverage Analysis Theory
Table of Contents
The ultimate goal of the coverage analysis testing is to ensure that every line of generated assembly in a particular configuration is executed by the test suite, that the tests exercise both taking and not taking every branch, and that every line of source code is actually tested.
This is beyond statement level coverage in that we have to verify both paths of a C line like the following is executed:
x = (y) ? z : a;
That is one statement but includes a branch. That makes it one point to cover when viewed using statement coverage. But it is two points to cover in our object level coverage of generated assembly.
Statement Coverage
Statement coverage verifies that each line of source code in a source file is represented by generated assembly and that that assembly code is exercised.
=Decision Coverage =
TBD
==MC/DC==
TBD
Attachments (1)
-
CoverageCategories.png (31.5 KB) - added by Amar Takhar on 11/23/14 at 05:06:27.
Imported from old wiki.
Download all attachments as: .zip