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.1 lcov report (development 22726-9e20c6a88) Lines: 1006 1045 96.3 %
Date: 2018-06-23 05:36:28 Functions: 65 65 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 168
bernvec 175
atan2_agm 196
mpasinh 483
mpacosh 728
Hseries 756
ggamma1m1 1211
bernpol 1218
bernpol_i 1246
gsinh 2016
lngamma1 2030
mpcosh 3584
gcosh 3668
serpsiz0 4424
serpsi1 6944
glngamma 7595
gacos 7938
gacosh 7980
gasin 8183
serpsi 11382
gpsi 11438
gammahs 11641
bernfrac 12238
dabs 12838
gatanh 15603
gasinh 15715
serlngamma 17626
serlngamma0 17661
mpfactr 19108
gatan 19374
mptanh 77056
gtanh 77161
cxgamma 181599
darg 181683
dcxlog 181683
mpbern 187318
trans_fix_arg 188417
ggamma 209202
cxarg 488553
mparg 488553
garg 489694
mpatan 499723
divgunu 665866
tr 956687
rfix 977106
bern 1765459
divrunu 29506483

Generated by: LCOV version 1.13