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.18.1 lcov report (development 30347-cb65b7994e) Lines: 682 686 99.4 %
Date: 2025-06-27 09:22:08 Functions: 69 69 100.0 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
F01 21
F10 350
F20 56
F21 30261
F21_i 30331
F21finite 4746
F21finite_i 119
F21finitelim 8505
F21finitetaylor 4746
F21ind 29442
F21lam 28
F21taylor 11592
F21taylor1 12572
F21taylor4 189
F21taylor5 91
F21taylor6 84
F21taylorind 24570
F21taylorlim 8505
F31 56
F32 49
FBaux1 4431
FBaux2 8505
Ftaylor 24430
Npoch 114086
Npochden 38472
OK_gadd 5796
Qp_hypergeom 77
RgV_z_add 6048
airy 42
airy_i 70
bind 210
check_hyp1 91
cind 59094
divgamma2 140
fF21 73738
fF31 17472
fF32 11298
f_pochall 2086
f_pochall_alt 371
hypergeom 3038
hypergeom_arg 6076
hypergeom_i 3325
hypersimplify 3304
hyperu 14
hyperu_F11 70
hyperu_i 70
int21 119
intnumsplit 119
is0 73885
islong 12936
isnegint 27825
isnegint2 116039
isnegint_approx 58884
mkendpt 385
mul3 73738
mulgamma2 28819
mulgammav2 28602
multgam 28
myint32 42
normpol2 111909
ok_F32 63
poch 114352
precFtaylor 37681
serhypergeom 63
sumz 63
vnormpol2 75362
vp 161
vpoch 56
zind 111524

Generated by: LCOV version 1.16