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 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.10.0 lcov report (development 21350-3349c1d) Lines: 610 721 84.6 %
Date: 2017-11-21 06:21:18 Functions: 51 52 98.1 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
sqrconst 0
_res 7
step5 7
GEN_hash_keys 49
divisorslenstra 49
check_t 280
set_add 329
add 448
step4b 1474
calcglobs 1972
compute_e 1972
compute_t 1972
compute_t_small 1972
step6 1972
aprcl 1993
isprimeAPRCL 1993
finda 2787
aprcl_step6_worker 5030
step4c 8737
filltabs 9657
get_jac2 10211
look_eta2 10212
is_m1 10225
step4d 11404
u_red_cyclo2n_ip 12251
_powpolmodsimple 14097
aprcl_step4_worker 21585
compute_g 21606
get_jac 29320
look_eta 29320
smallpolrev 29320
step4a 29321
u_red 29321
autvec_TH 30794
autvec_AL 30795
computetabdl 31814
powpolmod 39518
_powpolmod 64596
aut 188753
sqrmod4 620131
red_cyclo2n 642068
_red_cyclo2n 642070
red_cyclo2n_ip 644829
sqrmod3 808592
_red 965921
makepoldeg1 1428004
sqrmod5 1436006
_red_cyclop 1865440
red_cyclop 1865465
_mul 2494842
_redsimple 9820348
sqrmod 10767102

Generated by: LCOV version 1.11