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 29115-f22e516b23) Lines: 297 504 58.9 %
Date: 2024-05-20 08:06:08 Functions: 46 73 63.0 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
RZLERinit 0
RZchi 854
RZinit 854
RZlerch_easy 0
_fun_q0 0
_fun_q12 0
allparsums 0
applyfuneq 14
brent_q 1708
dirichlet_ours 854
double_exp_residue_pos_h 0
findq 854
fun_q 31350
gaminus 0
gaplus 0
gaussconj 7
get_chivec 186396
get_gauss 21
get_m 854
get_modulus 630774
get_signat 185361
gnegconj 7
integral_h0 846
integral_h0l 0
integral_h12 0
integrand_h0 441554
integrand_h0l 0
integrand_h12 0
lerch_ours 0
lerchlarge 0
lerchzetalarge 0
lfuncharall 854
lfungetchars 14
lfunlambdalarge 0
lfunlarge 183
lfunlarge_char 854
lfunlargeall 832
lfunlargeall_from_chars 28
lfunloglambdalarge 649
m_al 854
m_aleps 443997
m_h 3289
m_lin 846
m_n0 4143
m_np 846
m_pz 184299
m_r0 443997
mul_addsub 604452
mycall 609259
mycharinit 854
myex 0
myinitconj 7
mylog 31350
phi_hat 2443
phi_hat_h 0
phi_hat_h0 2443
serh_worker 0
serhlong_worker 0
series_h0 854
series_h0l 0
series_h1 0
series_h2 0
series_residues_h0 846
series_residues_h0l 0
series_residues_h1 0
series_residues_h2 0
set_q_value 854
setlin_grid_exp 854
total_value 882
wd 184299
xpquo 854
xpquo_one 414
zetahurwitzlarge 0

Generated by: LCOV version 1.14