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 23339-b1c33c51a) Lines: 599 706 84.8 %
Date: 2018-12-11 05:41:34 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 8444
filltabs 9365
get_jac2 9410
look_eta2 9411
is_m1 9662
u_red_cyclo2n_ip 10799
step4d 11059
_powpolmodsimple 13732
compute_g 20466
aprcl_step4_worker 20467
step4a 27325
get_jac 27328
zv_to_ZX 27334
look_eta 27336
autvec_TH 28291
autvec_AL 28301
computetabdl 29851
powpolmod 36734
_powpolmod 60316
aut 163635
red_cyclo2n 393487
_red_cyclo2n 393494
red_cyclo2n_ip 396056
sqrmod4 498229
_red 585271
sqrmod3 606641
makepoldeg1 1099629
sqrmod5 1117124
red_cyclop 1481281
_red_cyclop 1481343
sqrmod 1631348
_mul 2149277
sqrmodZ 7181727
modZ 15063384

Generated by: LCOV version 1.13