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 16624-25b9976) Lines: 510 583 87.5 %
Date: 2014-06-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 1190185
_powpolmod 34580
_powpolmodsimple 8180
_red 131835
_red_cyclo2n 117675
_red_cyclop 847885
_redsimple 5014740
_res 5
alloc_cache 6485
aprcl 1175
aut 87525
autvec_AL 15995
autvec_TH 15995
calcglobs 1160
compute_e 1160
compute_g 11625
compute_t 1160
compute_t_small 1160
computetabdl 16590
filltabs 5330
finda 1615
get_jac 15855
get_jac2 4965
is_m1 5560
isprimeAPRCL 1175
look_eta 15855
look_eta2 4965
makepoldeg1 553370
powpolmod 20820
red_cyclo2n 117675
red_cyclo2n_ip 117815
red_cyclop 847885
smallpolrev 15855
sqrconst 0
sqrmod 4903700
sqrmod3 307190
sqrmod4 246180
sqrmod5 568035
step4a 15855
step4b 140
step4c 4825
step4d 6655
step5 5
step6 1160
u_red 15855
u_red_cyclo2n_ip 5105

Generated by: LCOV version 1.9