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 29806-4d001396c7) Lines: 474 512 92.6 %
Date: 2024-12-22 09:08:28 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 1127
RZinit 1127
RZlerch_easy 0
_fun_q0 56
_fun_q12 112
add3 42
addrlogabs 4676
addsub 14
applyfuneq 14
brent_q 2338
dirichlet_ours 1127
double_exp_residue_pos_h 56
findq 1169
fun_q 4508
gaminus 56
gaplus 28
gaussconj 7
get_chiZ 203968
get_chivec 205578
get_gauss 21
get_m 1141
get_modulus 805484
get_signat 204871
gnegconj 7
integral_h0 1176
integral_h0l 14
integral_h12 28
integrand_h0 596126
integrand_h0l 3430
integrand_h12 6860
lerch_ours 14
lerchlarge 42
lerchzetalarge 7
lfuncharall 1127
lfungetchars 14
lfunlambdalarge 0
lfunlarge 231
lfunlarge_char 1127
lfunlargeall 1099
lfunlargeall_from_chars 28
lfunloglambdalarge 868
m_al 1127
m_aleps 599514
m_h 4606
m_lin 1176
m_n0 5775
m_np 1176
m_r0 599514
mul_addsub 630952
mycall 636923
mycharinit 1127
myex 56
mygfrac 14
myinitconj 7
phi_hat 3444
phi_hat_h 56
phi_hat_h0 3388
serh_worker 3513
series_h0 1127
series_h0l 14
series_h1 14
series_h2 14
series_residues_h0 1176
series_residues_h0l 14
series_residues_h1 14
series_residues_h2 14
set_arg 28
set_q_value 1127
setlin_grid_exp 1141
total_value 1176
wd 202841
xpquo 1127
xpquo_one 469
zetahurwitzlarge 7

Generated by: LCOV version 1.16