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.10.0 lcov report (development 19837-cc815bb) Lines: 511 583 87.7 %
Date: 2016-12-10 05:49:10 Functions: 45 46 97.8 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
_mul 2154054
_powpolmod 60272
_powpolmodsimple 13717
_red 584582
_red_cyclo2n 393784
_red_cyclop 1483020
_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 1109976
powpolmod 36711
red_cyclo2n 393785
red_cyclo2n_ip 395292
red_cyclop 1483019
smallpolrev 27310
sqrconst 0
sqrmod 8921342
sqrmod3 609275
sqrmod4 500736
sqrmod5 1117613
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.11