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 - modules - aprcl.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.8.0 lcov report (development 19611-73a567d) Lines: 511 583 87.7 %
Date: 2016-09-27 05:54:40 Functions: 45 46 97.8 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
_mul 2154053
_powpolmod 60272
_powpolmodsimple 13717
_red 584457
_red_cyclo2n 393796
_red_cyclop 1483047
_redsimple 8648033
_res 7
alloc_cache 11286
aprcl 1961
aut 163504
autvec_AL 28272
autvec_TH 28272
calcglobs 1940
compute_e 1940
compute_g 20466
compute_t 1940
compute_t_small 1940
computetabdl 29867
filltabs 9353
finda 2743
get_jac 27310
get_jac2 9401
is_m1 9651
isprimeAPRCL 1961
look_eta 27310
look_eta2 9401
makepoldeg1 1109924
powpolmod 36711
red_cyclo2n 393796
red_cyclo2n_ip 395274
red_cyclop 1483048
smallpolrev 27309
sqrconst 0
sqrmod 8921343
sqrmod3 609254
sqrmod4 500718
sqrmod5 1117588
step4a 27310
step4b 962
step4c 8439
step4d 11058
step5 7
step6 1940
u_red 27309
u_red_cyclo2n_ip 10783

Generated by: LCOV version 1.11