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 - hypergeom.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.16.2 lcov report (development 29419-8afb0ed749) Lines: 682 686 99.4 %
Date: 2024-07-02 09:03:41 Functions: 69 69 100.0 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
hyperu 14
F01 21
F21lam 28
multgam 28
airy 42
myint32 42
F32 49
F20 56
F31 56
vpoch 56
ok_F32 63
serhypergeom 63
sumz 63
airy_i 70
hyperu_F11 70
hyperu_i 70
Qp_hypergeom 77
F21taylor6 84
F21taylor5 91
check_hyp1 91
F21finite_i 119
int21 119
intnumsplit 119
divgamma2 140
vp 161
F21taylor4 189
bind 203
F10 350
f_pochall_alt 371
mkendpt 385
f_pochall 2086
hypergeom 3031
hypersimplify 3297
hypergeom_i 3318
FBaux1 4431
F21finite 4739
F21finitetaylor 4739
OK_gadd 5796
RgV_z_add 6048
hypergeom_arg 6062
F21finitelim 8505
F21taylorlim 8505
FBaux2 8505
fF32 11298
F21taylor 11592
F21taylor1 12572
islong 12936
fF31 17472
Ftaylor 24430
F21taylorind 24570
isnegint 27811
mulgammav2 28602
mulgamma2 28819
F21ind 29435
F21 30254
F21_i 30324
precFtaylor 37674
Npochden 38465
isnegint_approx 58870
cind 59073
fF21 73738
mul3 73738
is0 73871
vnormpol2 75348
zind 111482
normpol2 111888
Npoch 114065
poch 114331
isnegint2 115997

Generated by: LCOV version 1.16