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 29115-f22e516b23) Lines: 598 704 84.9 %
Date: 2024-05-04 08:07:34 Functions: 49 50 98.0 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
_mul 2203902
_powpolmod 54739
_powpolmodsimple 11811
_red 807954
_red_cyclo2n 566222
_red_cyclop 1791377
add 336
aprcl 1678
aprcl_step4_worker 17952
aprcl_step6_worker 1886
aut 161979
autvec_AL 26204
autvec_TH 26204
calcglobs 1657
check_t 301
compute_e 1657
compute_g 17959
compute_t 1657
compute_t_small 1657
computetabdl 26135
divisorslenstra 63
filltabs 7858
finda 2277
get_jac 25177
get_jac2 8176
is_m1 8569
isprimeAPRCL 1678
look_eta 25177
look_eta2 8176
makepoldeg1 1289326
modZ 16587957
powpolmod 33352
red_cyclo2n 566218
red_cyclo2n_ip 567630
red_cyclop 1791297
set_add 385
sqrconst 0
sqrmod 2237934
sqrmod3 757070
sqrmod4 536144
sqrmod5 1314069
sqrmodZ 7562613
step4a 25176
step4b 1026
step4c 7150
step4d 9776
step5 7
step6 1657
u_red_cyclo2n_ip 9456
zv_to_ZX 25176

Generated by: LCOV version 1.14