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.18.0 lcov report (development 29831-b8da5aa5b5) Lines: 474 512 92.6 %
Date: 2024-12-30 09:09:15 Functions: 73 75 97.3 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
RZlerch_easy 0
lfunlambdalarge 0
gaussconj 7
gnegconj 7
lerchzetalarge 7
myinitconj 7
zetahurwitzlarge 7
RZLERinit 14
addsub 14
applyfuneq 14
integral_h0l 14
lerch_ours 14
lfungetchars 14
mygfrac 14
series_h0l 14
series_h1 14
series_h2 14
series_residues_h0l 14
series_residues_h1 14
series_residues_h2 14
get_gauss 21
gaplus 28
integral_h12 28
lfunlargeall_from_chars 28
set_arg 28
add3 42
lerchlarge 42
_fun_q0 56
double_exp_residue_pos_h 56
gaminus 56
myex 56
phi_hat_h 56
_fun_q12 112
lfunlarge 231
xpquo_one 469
lfunloglambdalarge 868
lfunlargeall 1099
RZchi 1127
RZinit 1127
dirichlet_ours 1127
lfuncharall 1127
lfunlarge_char 1127
m_al 1127
mycharinit 1127
series_h0 1127
set_q_value 1127
xpquo 1127
get_m 1141
setlin_grid_exp 1141
findq 1169
integral_h0 1176
m_lin 1176
m_np 1176
series_residues_h0 1176
total_value 1176
brent_q 2338
phi_hat_h0 3388
integrand_h0l 3430
phi_hat 3444
serh_worker 3513
fun_q 4508
m_h 4606
addrlogabs 4676
m_n0 5775
integrand_h12 6860
wd 202841
get_chiZ 203968
get_signat 204871
get_chivec 205578
integrand_h0 596126
m_aleps 599514
m_r0 599514
mul_addsub 630952
mycall 636923
get_modulus 805484

Generated by: LCOV version 1.16