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 30702-bddb8d6928) Lines: 857 867 98.8 %
Date: 2026-02-23 02:23:56 Functions: 61 61 100.0 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
vecsmall_balance 114
prlifttoKz 369
nfcompositumall 384
relative_pol 402
bnrclassfield_tower 420
prlifttoKzall 422
rnfkummer 582
_rnfkummer_step4 701
lifttoKz 732
prlifttoKz_i 791
_rnfkummer 1002
max_smu 2155
compositum_red 2431
get_tau 2431
kervirtualunit 2431
rnfkummer_init 2431
RgV_lambda 2539
compute_polrel 2539
ideallifttoKz 2539
nfX_Z_normalize 2539
rnfkummer_ell 2539
get_mmu 4881
powtau 5078
prconj 5688
to_alg 7420
bnrclassfield_sanitize 7608
downtoK 7608
mod_Xell_a 7608
Rg_lambda 7862
split_pol 15216
RgV_tau 15485
bnrclassfieldvec 26541
nfV_to_logFlv 30020
rnfkummer_initall 33033
disc_primes 33051
bnrclassfield 33165
logall 34038
bnr_check_var 34131
bnrclassfield_H 34365
bnrclassfield_primepower 34401
cyclic_compos 34401
bid_primes 35590
rnfkummersimple 37113
bnf_cycgenmod 39544
futu 39544
compute_beta 39652
get_prlist 39652
list_Hecke 39652
matlogall 39652
reduce_mod_Qell 39652
reducebeta 39652
subgroup_info 39652
get_badbnf 42191
get_z 53075
isprincipalell 62223
lift_if_rational 63855
H_is_good 66355
nf_to_logFl 97542
prconj_in_list 99404
Rg_tau 237488
gsetvarn 248640

Generated by: LCOV version 1.16