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 21913-852521c) Lines: 610 721 84.6 %
Date: 2018-02-19 06:15:51 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 1473
calcglobs 1972
compute_e 1972
compute_t 1972
compute_t_small 1972
step6 1972
aprcl 1993
isprimeAPRCL 1993
finda 2787
aprcl_step6_worker 4130
step4c 8738
filltabs 9657
get_jac2 10210
look_eta2 10212
is_m1 10224
step4d 11410
u_red_cyclo2n_ip 12250
_powpolmodsimple 14099
aprcl_step4_worker 21551
compute_g 21594
smallpolrev 29319
look_eta 29320
u_red 29320
get_jac 29321
step4a 29322
autvec_TH 30793
autvec_AL 30796
computetabdl 31789
powpolmod 39525
_powpolmod 64599
aut 188756
sqrmod4 620045
red_cyclo2n 641998
_red_cyclo2n 642001
red_cyclo2n_ip 644747
sqrmod3 808503
_red 966045
makepoldeg1 1427303
sqrmod5 1435853
red_cyclop 1865248
_red_cyclop 1865263
_mul 2494660
_redsimple 9811969
sqrmod 10760722

Generated by: LCOV version 1.11