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 22344-f2bf0a3) Lines: 1009 1048 96.3 %
Date: 2018-04-25 06:16:49 Functions: 65 65 100.0 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
Hseries 756
Qp_gamma 77
Qp_gamma_Dwork 28
Qp_gamma_Morita 49
Qp_gamma_neg_Morita 28
acos0 14
atan2_agm 196
bern 1765459
bernfrac 11900
bernpol 1218
bernpol_i 1246
bernvec 175
bernvec_old 168
cxarg 494834
cxgamma 181599
cxpsi 42
dabs 12838
darg 181683
dcxlog 181683
divgunu 666137
divrunu 29504042
dnorm 35
faulhaber 42
gacos 7938
gacosh 7980
gadw 28
gammahs 11865
garg 495975
gasin 8183
gasinh 15715
gatan 19374
gatanh 15603
gcosh 3668
gcotanh 63
ggamma 209608
ggamma1m1 1211
ggammah 21
glngamma 7595
gpsi 11438
gsinh 2016
gtanh 77161
lngamma1 2030
mpacos 105
mpacosh 728
mparg 494834
mpasin 98
mpasinh 483
mpatan 506004
mpatanh 98
mpbern 187318
mpcosh 3584
mpcotanh 7
mpfactr 19316
mpsinh 70
mptanh 77056
nboft 28
rfix 989668
serlngamma 17850
serlngamma0 17885
serpsi 11382
serpsi1 6944
serpsiz0 4424
sumformal 49
tr 966767
trans_fix_arg 188417

Generated by: LCOV version 1.11