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-02 08:08:24 Functions: 49 50 98.0 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
_mul 2204343
_powpolmod 54778
_powpolmodsimple 11818
_red 808625
_red_cyclo2n 566543
_red_cyclop 1791300
add 336
aprcl 1679
aprcl_step4_worker 17960
aprcl_step6_worker 1887
aut 162049
autvec_AL 26218
autvec_TH 26218
calcglobs 1658
check_t 301
compute_e 1658
compute_g 17958
compute_t 1658
compute_t_small 1658
computetabdl 26125
divisorslenstra 63
filltabs 7864
finda 2279
get_jac 25188
get_jac2 8180
is_m1 8572
isprimeAPRCL 1679
look_eta 25190
look_eta2 8181
makepoldeg1 1287840
modZ 16576289
powpolmod 33370
red_cyclo2n 566532
red_cyclo2n_ip 567954
red_cyclop 1791214
set_add 385
sqrconst 0
sqrmod 2238483
sqrmod3 756550
sqrmod4 536013
sqrmod5 1314020
sqrmodZ 7567527
step4a 25188
step4b 1028
step4c 7151
step4d 9767
step5 7
step6 1658
u_red_cyclo2n_ip 9466
zv_to_ZX 25188

Generated by: LCOV version 1.14