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-09 08:07:53 Functions: 46 73 63.0 %
Legend: Lines: hit not hit

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

Generated by: LCOV version 1.14