Code coverage tests

This page documents the degree to which the PARI/GP source code is tested by our public test suite, distributed with the source distribution in directory src/test/. This is measured by the gcov utility; we then process gcov output using the lcov frond-end.

We test a few variants depending on Configure flags on the pari.math.u-bordeaux.fr machine (x86_64 architecture), and agregate them in the final report:

The target is to exceed 90% coverage for all mathematical modules (given that branches depending on DEBUGLEVEL or DEBUGMEM are not covered). This script is run to produce the results below.

LCOV - code coverage report
Current view: top level - kernel/none - gcdll.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.12.0 lcov report (development 23008-54b2e2f01) Lines: 345 348 99.1 %
Date: 2018-09-20 05:37:46 Functions: 15 16 93.8 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
clcm 0
cbezout 241696
rgcduu 739676
lcmuu 2159133
ulcm 2179724
Fl_invgen 3736042
cgcd 7304943
lgcdii 7513962
gcduodd 145634923
ugcd 163976115
xxgcduu 169273404
Fl_inv 180202579
igcduu 180528990
mygcduodd 186546138
Fl_invsafe 197026960
xgcduu 208260551

Generated by: LCOV version 1.13