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 to exceed 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.16.1 lcov report (development 28676-df828f1c94) Lines: 1211 1259 96.2 %
Date: 2023-08-26 07:54:43 Functions: 91 93 97.8 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
err_psi 0
mpsinh0 0
mpcosh0 7
mpcotanh 7
Qp_lngamma 14
acos0 14
atanhui 14
sin12 21
err_atanh 28
ggammah 28
sinx2 28
mpatanh 42
cos12 49
gcotanh 63
mpasin 98
Gn24 105
mpacos 105
Qp_gamma_neg_Morita 112
atan2_agm 182
cbrtu 245
Qp_gamma_Morita 350
mpasinh 483
mpfactr_basecase 517
mpfactr_n 636
mpacosh 742
ggamma1m1 1211
Hseries 1379
G4 1897
G3 3689
mpcosh 3696
gcosh 3787
dlogE 4214
cxpsi 4228
psi_lim 4228
psi_sum 4228
gammafrac24_s 5607
ellKk 5999
ellkprime 5999
lngamma_n 7889
mpfactr_small 7889
gacos 7931
gacosh 7994
gasin 8393
serpsiz0 8939
negeuler 9114
sqrtu 9401
Qp_gamma_Dwork 11479
gadw 11479
nboft 11479
Qp_gamma 11829
psi1series 11830
gatanh 15176
mpsinh 15351
lngamma1 15355
gasinh 15715
dabs 16660
mpsinhcosh 17416
gsinh 18361
dnorm 20453
serpsi 20475
psi_n 21315
gatan 21866
sergamma 23492
serlngamma0 23527
mulu_interval_step_i 26592
mulu_interval_step_prec 26592
gamma2_n 35364
gammahs 35364
glngamma 35595
gammafrac24 43393
gpsi 46235
mptanh 77056
gtanh 77161
_mul 148773
atanhuu 196336
bern_u 210166
lngamma_sum 219132
gamma_optim 231025
gamma_use_1 233895
cxgamma 233929
darg 238991
dcxlog 238991
trans_fix_arg 246817
mpfactr 441782
ggamma 668127
tr 2030993
mparg 3408701
cxarg 3408719
mpatan 3422163
garg 3431850
rfix 6817409
muliunextu 8050631
bern_unextu 8050694

Generated by: LCOV version 1.14