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 17727-c4b959b) Lines: 516 583 88.5 %
Date: 2015-04-20 Functions: 45 46 97.8 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 300 472 63.6 %

Function Name Sort by function name Hit count Sort by hit count
_mul 2195575
_powpolmod 63142
_powpolmodsimple 14333
_red 603066
_red_cyclo2n 398843
_red_cyclop 1495517
_redsimple 8738513
_res 7
alloc_cache 12546
aprcl 2213
aut 170378
autvec_AL 29574
autvec_TH 29574
calcglobs 2192
compute_e 2192
compute_g 22076
compute_t 2192
compute_t_small 2192
computetabdl 32233
filltabs 10361
finda 2967
get_jac 28612
get_jac2 10157
is_m1 10379
isprimeAPRCL 2213
look_eta 28612
look_eta2 10157
makepoldeg1 1158516
powpolmod 38769
red_cyclo2n 398841
red_cyclo2n_ip 400284
red_cyclop 1495514
smallpolrev 28612
sqrconst 0
sqrmod 9004518
sqrmod3 637450
sqrmod4 521091
sqrmod5 1131984
step4a 28612
step4b 962
step4c 9195
step4d 11912
step5 7
step6 2192
u_red 28612
u_red_cyclo2n_ip 11539

Generated by: LCOV version 1.9