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 29712-7c8a932571) Lines: 479 518 92.5 %
Date: 2024-11-15 09:08:45 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
addrlogabs 4508
addsub 14
applyfuneq 14
brent_q 2254
dirichlet_ours 1085
double_exp_residue_pos_h 56
findq 1127
fun_q 4340
gaminus 56
gaplus 28
gaussconj 7
get_chiZ 184663
get_chivec 187267
get_gauss 21
get_m 1099
get_modulus 763801
get_signat 185965
gnegconj 7
integral_h0 1113
integral_h0l 14
integral_h12 28
integrand_h0 572831
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 576072
m_h 4396
m_lin 1113
m_n0 5523
m_np 1113
m_r0 576072
mul_addsub 612774
mycall 618472
mycharinit 1085
myex 56
mygfrac 14
myinitconj 7
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 184663
xpquo 1085
xpquo_one 441
zetahurwitzlarge 7

Generated by: LCOV version 1.16