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 - lfunlarge.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.16.2 lcov report (development 29420-55f63b8cfe) Lines: 481 519 92.7 %
Date: 2024-07-03 09:03:24 Functions: 73 75 97.3 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
RZLERinit 14
RZchi 1085
RZinit 1085
RZlerch_easy 0
_fun_q0 56
_fun_q12 112
add3 42
addsub 14
applyfuneq 14
brent_q 2254
dirichlet_ours 1085
double_exp_residue_pos_h 56
findq 1127
fun_q 41697
gaminus 56
gaplus 28
gaussconj 7
get_chiZ 195783
get_chivec 198387
get_gauss 21
get_m 1099
get_modulus 808248
get_signat 197085
gnegconj 7
integral_h0 1113
integral_h0l 14
integral_h12 28
integrand_h0 606158
integrand_h0l 3430
integrand_h12 6860
lerch_ours 14
lerchlarge 42
lerchzetalarge 7
lfuncharall 1085
lfungetchars 14
lfunlambdalarge 0
lfunlarge 189
lfunlarge_char 1085
lfunlargeall 1057
lfunlargeall_from_chars 28
lfunloglambdalarge 868
m_al 1085
m_aleps 609399
m_h 4396
m_lin 1113
m_n0 5523
m_np 1113
m_r0 609399
mul_addsub 647800
mycall 653498
mycharinit 1085
myex 56
mygfrac 14
myinitconj 7
mylog 41865
phi_hat 3297
phi_hat_h 56
phi_hat_h0 3241
serh_worker 3514
series_h0 1085
series_h0l 14
series_h1 14
series_h2 14
series_residues_h0 1113
series_residues_h0l 14
series_residues_h1 14
series_residues_h2 14
set_arg 28
set_q_value 1085
setlin_grid_exp 1099
total_value 1113
wd 195783
xpquo 1085
xpquo_one 441
zetahurwitzlarge 7

Generated by: LCOV version 1.16