|Did you know ...||Search Documentation:|
|library(test_cover): Clause coverage analysis|
The purpose of this module is to find which part of the program has been used by a certain goal. Usage is defined in terms of clauses that have fired, separated in clauses that succeeded at least once and clauses that failed on each occasion.
This module relies on the SWI-Prolog tracer hooks. It modifies these hooks and collects the results, after which it restores the debugging environment. This has some limitations:
The result is represented as a list of clause-references. As the references to clauses of dynamic predicates cannot be guaranteed, these are omitted from the result.
diroption are specified.
### Clause was never executed. ++N Clause was executed N times and always succeeded --N Clause was executed N times and never succeeded +N-M Clause was succeeded N times and failed M times