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-bordeaux1.fr machine (x86_64 architecture), and agregate them in the final report:

The target is 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 - modules - aprcl.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.8.0 lcov report (development 16937-4bd9b4e) Lines: 510 583 87.5 %
Date: 2014-10-24 Functions: 45 46 97.8 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 285 472 60.4 %

Function Name Sort by function name Hit count Sort by hit count
_mul 1666259
_powpolmod 48412
_powpolmodsimple 11452
_red 184569
_red_cyclo2n 164745
_red_cyclop 1187039
_redsimple 7020636
_res 7
alloc_cache 9079
aprcl 1645
aut 122535
autvec_AL 22393
autvec_TH 22393
calcglobs 1624
compute_e 1624
compute_g 16275
compute_t 1624
compute_t_small 1624
computetabdl 23226
filltabs 7462
finda 2261
get_jac 22197
get_jac2 6951
is_m1 7784
isprimeAPRCL 1645
look_eta 22197
look_eta2 6951
makepoldeg1 774718
powpolmod 29148
red_cyclo2n 164745
red_cyclo2n_ip 164941
red_cyclop 1187039
smallpolrev 22197
sqrconst 0
sqrmod 6865180
sqrmod3 430066
sqrmod4 344652
sqrmod5 795249
step4a 22197
step4b 196
step4c 6755
step4d 9317
step5 7
step6 1624
u_red 22197
u_red_cyclo2n_ip 7147

Generated by: LCOV version 1.9