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 21913-852521c) Lines: 1007 1046 96.3 %
Date: 2018-02-19 06:15:51 Functions: 63 63 100.0 %
Legend: Lines: hit not hit

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

Generated by: LCOV version 1.11