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 30582-6e9af8ee1d) Lines: 854 864 98.8 %
Date: 2025-12-20 09:23:49 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 847
lifttoKz 903
prlifttoKz_i 973
_rnfkummer 1211
max_smu 2545
compositum_red 2877
get_tau 2877
kervirtualunit 2877
rnfkummer_init 2877
RgV_lambda 3003
compute_polrel 3003
ideallifttoKz 3003
nfX_Z_normalize 3003
rnfkummer_ell 3003
get_mmu 5775
powtau 6006
prconj 6720
to_alg 8778
bnrclassfield_sanitize 8925
downtoK 9002
mod_Xell_a 9002
Rg_lambda 9268
split_pol 18004
RgV_tau 18326
bnrclassfieldvec 30967
nfV_to_logFlv 35504
rnfkummer_initall 38549
disc_primes 38569
bnrclassfield 38695
logall 39760
bnrclassfield_H 40103
bnrclassfield_primepower 40145
cyclic_compos 40145
bid_primes 41572
rnfkummersimple 43309
bnf_cycgenmod 46186
futu 46186
reduce_mod_Qell 46311
reducebeta 46311
compute_beta 46312
get_prlist 46312
list_Hecke 46312
matlogall 46312
subgroup_info 46312
get_badbnf 49315
get_z 61990
isprincipalell 72660
lift_if_rational 76188
H_is_good 77616
nf_to_logFl 115416
prconj_in_list 116114
Rg_tau 285418
gsetvarn 290080

Generated by: LCOV version 1.16