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

Generated by: LCOV version 1.16