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.1 lcov report (development 28880-3b5364847c) Lines: 600 706 85.0 %
Date: 2023-12-01 07:53:15 Functions: 50 51 98.0 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
sqrconst 0
step5 7
GEN_hash_keys 63
divisorslenstra 63
check_t 301
add 336
set_add 385
step4b 1028
calcglobs 1658
compute_e 1658
compute_t 1658
compute_t_small 1658
step6 1658
aprcl 1679
isprimeAPRCL 1679
aprcl_step6_worker 1887
finda 2279
step4c 7155
filltabs 7864
get_jac2 8183
look_eta2 8183
is_m1 8574
u_red_cyclo2n_ip 9467
step4d 9781
_powpolmodsimple 11820
aprcl_step4_worker 17964
compute_g 17971
look_eta 25190
step4a 25190
get_jac 25191
zv_to_ZX 25191
computetabdl 26154
autvec_AL 26219
autvec_TH 26219
powpolmod 33373
_powpolmod 54782
aut 162052
sqrmod4 536915
red_cyclo2n 566541
_red_cyclo2n 566543
red_cyclo2n_ip 567994
sqrmod3 756857
_red 808594
makepoldeg1 1289999
sqrmod5 1313908
red_cyclop 1790690
_red_cyclop 1790774
_mul 2206212
sqrmod 2237717
sqrmodZ 7611095
modZ 16594306

Generated by: LCOV version 1.14