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 - kummer.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.18.1 lcov report (development 30571-c0dfe82732) Lines: 854 864 98.8 %
Date: 2025-12-07 09:22:06 Functions: 60 60 100.0 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
H_is_good 77621
RgV_lambda 3010
RgV_tau 18354
Rg_lambda 9282
Rg_tau 285668
_rnfkummer 1211
_rnfkummer_step4 854
bid_primes 41586
bnf_cycgenmod 46192
bnrclassfield 38703
bnrclassfield_H 40110
bnrclassfield_primepower 40152
bnrclassfield_sanitize 8932
bnrclassfield_tower 490
bnrclassfieldvec 30968
compositum_red 2884
compute_beta 46318
compute_polrel 3010
cyclic_compos 40152
disc_primes 38576
downtoK 9016
futu 46192
get_badbnf 49329
get_mmu 5782
get_prlist 46319
get_tau 2884
get_z 62005
gsetvarn 290080
ideallifttoKz 3010
isprincipalell 72667
kervirtualunit 2884
lift_if_rational 76188
lifttoKz 903
list_Hecke 46319
logall 39774
matlogall 46319
max_smu 2551
mod_Xell_a 9016
nfV_to_logFlv 35546
nfX_Z_normalize 3010
nf_to_logFl 115500
nfcompositumall 448
powtau 6020
prconj 6727
prconj_in_list 116129
prlifttoKz 434
prlifttoKz_i 973
prlifttoKzall 539
reduce_mod_Qell 46318
reducebeta 46318
relative_pol 469
rnfkummer 721
rnfkummer_ell 3010
rnfkummer_init 2884
rnfkummer_initall 38556
rnfkummersimple 43309
split_pol 18032
subgroup_info 46319
to_alg 8792
vecsmall_balance 133

Generated by: LCOV version 1.16