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 19047-48ce0fc) Lines: 516 583 88.5 %
Date: 2016-06-28 Functions: 45 46 97.8 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 297 472 62.9 %

Function Name Sort by function name Hit count Sort by hit count
_mul 2154054
_powpolmod 60272
_powpolmodsimple 13717
_red 584542
_red_cyclo2n 393811
_red_cyclop 1483076
_redsimple 8648050
_res 7
alloc_cache 11286
aprcl 1961
aut 163505
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 1109944
powpolmod 36711
red_cyclo2n 393810
red_cyclo2n_ip 395283
red_cyclop 1483076
smallpolrev 27310
sqrconst 0
sqrmod 8921685
sqrmod3 609217
sqrmod4 500736
sqrmod5 1117594
step4a 27310
step4b 962
step4c 8439
step4d 11058
step5 7
step6 1940
u_red 27310
u_red_cyclo2n_ip 10783

Generated by: LCOV version 1.9