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 - trans2.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.10.0 lcov report (development 21940-9a7b1a1) Lines: 1007 1046 96.3 %
Date: 2018-02-22 06:15:58 Functions: 63 63 100.0 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
Hseries 441
Qp_gamma 77
Qp_gamma_Dwork 28
Qp_gamma_Morita 49
Qp_gamma_neg_Morita 28
acos0 14
bern 1765459
bernfrac 11319
bernpol 1071
bernpol_i 1099
bernvec 147
bernvec_old 140
cxarg 484545
cxgamma 181277
cxpsi 42
dabs 12838
darg 181431
dcxlog 181431
divgunu 666137
divrunu 28935831
dnorm 35
faulhaber 42
gacos 7938
gacosh 7980
gadw 28
gammahs 6482
garg 485686
gasin 8183
gasinh 15715
gatan 19318
gatanh 15603
gcosh 3668
gcotanh 63
ggamma 197057
ggamma1m1 1211
ggammah 21
glngamma 7588
gpsi 9030
gsinh 1736
gtanh 77161
lngamma1 2030
mpacos 105
mpacosh 728
mparg 484545
mpasin 98
mpasinh 483
mpatan 495694
mpatanh 98
mpbern 186919
mpcosh 3584
mpcotanh 7
mpfactr 19260
mpsinh 70
mptanh 77056
nboft 28
rfix 969090
serlngamma0 11095
serpsi 8974
serpsi1 5733
serpsiz0 3227
sumformal 49
tr 703649
trans_fix_arg 188095

Generated by: LCOV version 1.11