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 to exceed 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 - basemath - aprcl.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.16.2 lcov report (development 29420-55f63b8cfe) Lines: 598 704 84.9 %
Date: 2024-07-03 09:03:24 Functions: 49 50 98.0 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
_mul 2202478
_powpolmod 54721
_powpolmodsimple 11804
_red 808002
_red_cyclo2n 566191
_red_cyclop 1791182
add 336
aprcl 1678
aprcl_step4_worker 17941
aprcl_step6_worker 1886
aut 161970
autvec_AL 26204
autvec_TH 26203
calcglobs 1657
check_t 301
compute_e 1657
compute_g 17940
compute_t 1657
compute_t_small 1657
computetabdl 26103
divisorslenstra 63
filltabs 7858
finda 2277
get_jac 25176
get_jac2 8170
is_m1 8568
isprimeAPRCL 1678
look_eta 25176
look_eta2 8172
makepoldeg1 1285590
modZ 16560953
powpolmod 33333
red_cyclo2n 566190
red_cyclo2n_ip 567571
red_cyclop 1791133
set_add 385
sqrconst 0
sqrmod 2238189
sqrmod3 755969
sqrmod4 534951
sqrmod5 1314190
sqrmodZ 7551174
step4a 25172
step4b 1026
step4c 7144
step4d 9761
step5 7
step6 1657
u_red_cyclo2n_ip 9452
zv_to_ZX 25175

Generated by: LCOV version 1.16