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 20459-9710128) Lines: 511 583 87.7 %
Date: 2017-04-27 05:33:52 Functions: 45 46 97.8 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
_mul 1879637
_powpolmod 52090
_powpolmodsimple 11800
_red 536144
_red_cyclo2n 359450
_red_cyclop 1304652
_redsimple 7542952
_res 6
alloc_cache 9706
aprcl 1684
aut 142446
autvec_AL 24468
autvec_TH 24468
calcglobs 1666
compute_e 1666
compute_g 17652
compute_t 1666
compute_t_small 1666
computetabdl 25786
filltabs 8046
finda 2356
get_jac 23596
get_jac2 8134
is_m1 8326
isprimeAPRCL 1684
look_eta 23596
look_eta2 8134
makepoldeg1 980246
powpolmod 31730
red_cyclo2n 359449
red_cyclo2n_ip 360798
red_cyclop 1304652
smallpolrev 23596
sqrconst 0
sqrmod 7834294
sqrmod3 540581
sqrmod4 439678
sqrmod5 987186
step4a 23596
step4b 872
step4c 7262
step4d 9512
step5 6
step6 1666
u_red 23596
u_red_cyclo2n_ip 9382

Generated by: LCOV version 1.11