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.18.0 lcov report (development 29644-f1a46412a2) Lines: 1260 1313 96.0 %
Date: 2024-10-12 09:06:38 Functions: 95 97 97.9 %
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
cos12 49
gcotanh 63
_gpsi_der 70
mpasin 98
Gn24 105
mpacos 105
atan2_agm 184
Qp_gamma_neg_Morita 238
Qp_psi 238
cbrtu 245
Qp_gamma_Morita 490
mpfactr_basecase 517
mpfactr_n 636
gpsi_der 742
mpacosh 742
ggamma1m1 1211
Hseries 1400
mpasinh 1610
G4 1918
mpcosh 3528
gcosh 3619
G3 3689
dlogE 4235
psi_lim 4249
psi_sum 4249
cxpsi 4438
mpatanh 4536
gammafrac24_s 5628
ellKk 6020
ellkprime 6020
mpsinh 6027
lngamma_n 7889
mpfactr_small 7889
gacos 7931
gacosh 7994
gasin 8393
serpsiz0 9044
negeuler 9219
sqrtu 9422
gsinh 11844
psi1series 11935
lngamma1 15635
dabs 16660
gasinh 20139
dnorm 20643
serpsi 20685
psi_n 21322
sergamma 24458
serlngamma0 24493
mulu_interval_step_i 26690
mulu_interval_step_prec 26690
gamma2_n 36267
gammahs 36267
glngamma 38794
gammafrac24 44590
gatanh 45785
gpsi 46375
gatan 59866
mptanh 77056
gtanh 77161
_mul 148745
bern_u 211323
lngamma_sum 213080
Qp_gamma_Dwork 215746
gadw 215746
nboft 215746
Qp_gamma 216243
gamma_optim 225137
gamma_use_1 227797
cxgamma 227836
dcxlog 233125
darg 233127
trans_fix_arg 240779
mpsinhcosh 405857
mpfactr 410328
ggamma 628720
tr 2057138
cxarg 4415246
mparg 4415260
garg 4432784
mpatan 4438038
get_nmax 5404008
atanhuu 5418376
muliunextu 7803961
bern_unextu 7804212
rfix 8830493

Generated by: LCOV version 1.16