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 21352-4be8729) Lines: 993 1034 96.0 %
Date: 2017-11-23 06:21:03 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
bernvec_old 21
ggammah 21
Qp_gamma_Dwork 28
Qp_gamma_neg_Morita 28
bernvec 28
gadw 28
nboft 28
dnorm 42
faulhaber 42
Qp_gamma_Morita 49
cxpsi 49
sumformal 49
gcotanh 63
mpsinh 63
Qp_gamma 77
mpasin 98
mpatanh 98
mpacos 105
Hseries 427
mpasinh 483
mpacosh 728
bernpol 896
bernpol_i 924
ggamma1m1 1211
gsinh 1729
lngamma1 2030
serpsiz0 3220
mpcosh 3577
gcosh 3654
serpsi1 5719
gammahs 6237
glngamma 7588
gacos 7938
gacosh 7980
gasin 8183
serpsi 8953
gpsi 9016
serlngamma0 11221
dabs 12824
bernfrac 13468
gatanh 15603
gasinh 15715
gatan 19290
mpfactr 20925
mptanh 77056
gtanh 77161
cxgamma 179548
darg 180528
dcxlog 180528
mpbern 185673
trans_fix_arg 186331
ggamma 194740
cxarg 484166
mparg 484166
garg 485307
mpatan 495281
divgunu 660059
tr 702529
rfix 968332
bern 1635432
divrunu 28892611

Generated by: LCOV version 1.11