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 29950-285c5b69ed) Lines: 850 861 98.7 %
Date: 2025-02-05 09:09:51 Functions: 60 60 100.0 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
H_is_good 52709
RgV_lambda 3003
RgV_tau 18354
Rg_lambda 9254
Rg_tau 282142
_rnfkummer 973
_rnfkummer_step4 868
bid_primes 36813
bnf_cycgenmod 36630
bnrclassfield 33935
bnrclassfield_H 35343
bnrclassfield_primepower 35384
bnrclassfield_sanitize 3927
bnrclassfield_tower 266
bnrclassfieldvec 30966
compositum_red 2884
compute_beta 36750
compute_polrel 3003
cyclic_compos 35384
disc_primes 33810
downtoK 9002
futu 36631
get_badbnf 39753
get_mmu 5775
get_prlist 36750
get_tau 2884
get_z 42875
gsetvarn 229152
ideallifttoKz 3003
isprincipalell 53535
kervirtualunit 2884
lift_if_rational 70119
lifttoKz 889
list_Hecke 36750
logall 34587
matlogall 36750
max_smu 2545
mod_Xell_a 9002
nfV_to_logFlv 35609
nfX_Z_normalize 3003
nf_to_logFl 115626
nfcompositumall 448
powtau 6006
prconj 6713
prconj_in_list 91798
prlifttoKz 420
prlifttoKz_i 959
prlifttoKzall 539
reduce_mod_Qell 36750
reducebeta 36750
relative_pol 245
rnfkummer 707
rnfkummer_ell 3003
rnfkummer_init 2884
rnfkummer_initall 33789
rnfkummersimple 33747
split_pol 18004
subgroup_info 36749
to_alg 8778
vecsmall_balance 133

Generated by: LCOV version 1.16