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 30604-e5d817ee12) Lines: 857 867 98.8 %
Date: 2026-01-09 09:21:43 Functions: 61 61 100.0 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
vecsmall_balance 133
prlifttoKz 434
nfcompositumall 448
relative_pol 469
bnrclassfield_tower 490
prlifttoKzall 539
rnfkummer 721
_rnfkummer_step4 840
lifttoKz 903
prlifttoKz_i 973
_rnfkummer 1211
max_smu 2544
compositum_red 2870
get_tau 2870
kervirtualunit 2870
rnfkummer_init 2870
RgV_lambda 2996
compute_polrel 2996
ideallifttoKz 2996
nfX_Z_normalize 2996
rnfkummer_ell 2996
get_mmu 5768
powtau 5992
prconj 6720
to_alg 8764
bnrclassfield_sanitize 8918
downtoK 8988
mod_Xell_a 8988
Rg_lambda 9254
split_pol 17976
RgV_tau 18298
bnrclassfieldvec 30967
nfV_to_logFlv 35441
rnfkummer_initall 38542
disc_primes 38563
bnrclassfield 38696
logall 39752
bnr_check_var 39864
bnrclassfield_H 40096
bnrclassfield_primepower 40138
cyclic_compos 40138
bid_primes 41559
rnfkummersimple 43309
bnf_cycgenmod 46178
futu 46179
matlogall 46303
compute_beta 46304
get_prlist 46305
list_Hecke 46305
reduce_mod_Qell 46305
reducebeta 46305
subgroup_info 46305
get_badbnf 49301
get_z 61985
isprincipalell 72653
lift_if_rational 76188
H_is_good 77609
nf_to_logFl 115290
prconj_in_list 116109
Rg_tau 285378
gsetvarn 290080

Generated by: LCOV version 1.16