||[an error occurred while processing this directive]
||The COVERAGE pragma marks PL/SQL code which is infeasible to test for coverage. These marks improve coverage metric accuracy.
The COVERAGE pragma marks PL/SQL source code to indicate that the code may not be feasibly tested for coverage. The pragma marks a specific code section.
Marking infeasible code improves the quality of coverage metrics used to assess how much testing has been achieved.
|COVERAGE (new 12.2)
PRAGMA COVERAGE (<NOT_FEASIBLE | NOT_FEASIBLE_START | NOT_FEASIBILE_END>);
x PLS_INTEGER := 42;
IF (x <= 0) THEN
PRAGMA COVERAGE('NOT_FEASIBLE'); -- 1
IF (y >= 99) THEN
PRAGMA COVERAGE('NOT_FEASIBLE'); -- 2