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.12.0 lcov report (development 23353-42c433a02) Lines: 1079 1123 96.1 %
Date: 2018-12-15 05:41:59 Functions: 83 84 98.8 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
mpsinh0 0
mpcosh0 7
mpcotanh 7
acos0 14
cos12 21
sin12 21
Qp_gamma_Dwork 28
Qp_gamma_neg_Morita 28
gadw 28
ggammah 28
nboft 28
sinx2 28
Qp_gamma_Morita 49
gcotanh 63
Qp_gamma 77
Gn24 84
cbrtu 98
mpasin 98
mpatanh 98
mpacos 105
atan2_agm 196
G3 371
mpasinh 483
mpfactr_basecase 503
G4 518
mpfactr_n 615
mpacosh 728
Hseries 756
gammafrac24_s 973
ellKk 1197
ellkprime 1197
ggamma1m1 1211
sqrtu 1428
lngamma1 2321
mpcosh 3584
gcosh 3668
serpsiz0 4431
serpsi1 6965
lngamma_n 7882
mpfactr_small 7882
gacos 7938
gacosh 7987
gasin 8183
serpsi 11410
dabs 12838
mpsinh 15365
gatanh 15603
gasinh 15722
mpsinhcosh 15757
gsinh 17318
serlngamma 17689
serlngamma0 17724
gatan 19374
mulu_interval_step_i 22966
mulu_interval_step_prec 22966
dnorm 25403
cxpsi 25410
psi_sum 25410
gamma2_n 32382
gammahs 32382
gammafrac24 33894
glngamma 35217
gpsi 58240
mptanh 77056
gtanh 77161
_mul 97974
mpfactr 105503
lngamma_sum 227346
cxgamma 230146
darg 255304
dcxlog 255304
trans_fix_arg 262346
ggamma 314916
cxarg 589366
mparg 589366
garg 590507
mpatan 600536
divgunu 663030
tr 957744
rfix 1178732
bern_u 1277694
bern_unu 8432078
muliunu 8432078
divrunu 22340918

Generated by: LCOV version 1.13