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 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.10.0 lcov report (development 20443-183d202) Lines: 511 583 87.7 %
Date: 2017-03-27 05:17:48 Functions: 45 46 97.8 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
_mul 1372170
_powpolmod 40910
_powpolmodsimple 9585
_red 241715
_red_cyclo2n 171655
_red_cyclop 892215
_redsimple 5525470
_res 5
alloc_cache 7900
aprcl 1385
aut 105295
autvec_AL 19020
autvec_TH 19020
calcglobs 1370
compute_e 1370
compute_g 14070
compute_t 1370
compute_t_small 1370
computetabdl 20405
filltabs 6535
finda 1935
get_jac 18570
get_jac2 6335
is_m1 6625
isprimeAPRCL 1385
look_eta 18570
look_eta2 6335
makepoldeg1 648700
powpolmod 24905
red_cyclo2n 171655
red_cyclo2n_ip 172325
red_cyclop 892215
smallpolrev 18570
sqrconst 0
sqrmod 5436840
sqrmod3 343410
sqrmod4 305290
sqrmod5 652175
step4a 18570
step4b 450
step4c 5885
step4d 7730
step5 5
step6 1370
u_red 18570
u_red_cyclo2n_ip 7005

Generated by: LCOV version 1.11