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 30007-407ab607e8) Lines: 850 861 98.7 %
Date: 2025-02-20 09:19: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
relative_pol 245
bnrclassfield_tower 266
prlifttoKz 420
nfcompositumall 448
prlifttoKzall 539
rnfkummer 721
_rnfkummer_step4 868
lifttoKz 889
prlifttoKz_i 959
_rnfkummer 987
max_smu 2564
compositum_red 2898
get_tau 2898
kervirtualunit 2898
rnfkummer_init 2898
RgV_lambda 3017
compute_polrel 3017
ideallifttoKz 3017
nfX_Z_normalize 3017
rnfkummer_ell 3017
bnrclassfield_sanitize 3941
get_mmu 5789
powtau 6034
prconj 6727
to_alg 8806
downtoK 9030
mod_Xell_a 9030
Rg_lambda 9282
split_pol 18060
RgV_tau 18368
bnrclassfieldvec 30967
rnfkummersimple 33747
rnfkummer_initall 33788
disc_primes 33810
bnrclassfield 33935
logall 34601
bnrclassfield_H 35343
bnrclassfield_primepower 35384
cyclic_compos 35384
nfV_to_logFlv 35651
bnf_cycgenmod 36645
futu 36645
compute_beta 36763
get_prlist 36764
list_Hecke 36764
matlogall 36764
reduce_mod_Qell 36764
reducebeta 36764
subgroup_info 36764
bid_primes 36827
get_badbnf 39781
get_z 42889
H_is_good 52723
isprincipalell 53550
lift_if_rational 72296
prconj_in_list 91839
nf_to_logFl 115654
gsetvarn 229152
Rg_tau 283073

Generated by: LCOV version 1.16