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.12.0 lcov report (development 23017-8c5e72c46) Lines: 599 706 84.8 %
Date: 2018-09-23 05:39:13 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 966
calcglobs 1942
compute_e 1942
compute_t 1942
compute_t_small 1942
step6 1942
aprcl 1963
isprimeAPRCL 1963
aprcl_step6_worker 2087
finda 2749
step4c 8442
filltabs 9365
get_jac2 9408
look_eta2 9412
is_m1 9658
u_red_cyclo2n_ip 10797
step4d 11052
_powpolmodsimple 13727
aprcl_step4_worker 20458
compute_g 20469
step4a 27328
get_jac 27330
look_eta 27330
zv_to_ZX 27333
autvec_TH 28293
autvec_AL 28297
computetabdl 29846
powpolmod 36724
_powpolmod 60309
aut 163630
_red_cyclo2n 393475
red_cyclo2n 393487
red_cyclo2n_ip 396008
sqrmod4 498030
_red 585295
sqrmod3 606745
makepoldeg1 1100411
sqrmod5 1117425
red_cyclop 1480803
_red_cyclop 1480865
sqrmod 1631529
_mul 2149535
sqrmodZ 7192383
modZ 15082459

Generated by: LCOV version 1.13