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.1 lcov report (development 22726-9e20c6a88) Lines: 609 720 84.6 %
Date: 2018-06-23 05:36:28 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 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
finda 2749
aprcl_step6_worker 7153
step4c 8444
filltabs 9365
get_jac2 9408
look_eta2 9412
is_m1 9661
u_red_cyclo2n_ip 10799
step4d 11051
_powpolmodsimple 13731
aprcl_step4_worker 20464
compute_g 20465
step4a 27325
get_jac 27326
look_eta 27327
smallpolrev 27328
u_red 27330
autvec_AL 28300
autvec_TH 28300
computetabdl 29853
powpolmod 36731
_powpolmod 60314
aut 163634
red_cyclo2n 393418
_red_cyclo2n 393429
red_cyclo2n_ip 396289
sqrmod4 498136
_red 585172
sqrmod3 606861
makepoldeg1 1100928
sqrmod5 1117205
red_cyclop 1481310
_red_cyclop 1481362
_mul 2148227
_redsimple 8489136
sqrmod 8812747

Generated by: LCOV version 1.13