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 30129-7d26f3be5e) Lines: 850 861 98.7 %
Date: 2025-04-08 09:19:30 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 52695
RgV_lambda 2996
RgV_tau 18284
Rg_lambda 9240
Rg_tau 281778
_rnfkummer 987
_rnfkummer_step4 847
bid_primes 36785
bnf_cycgenmod 36624
bnrclassfield 33915
bnrclassfield_H 35322
bnrclassfield_primepower 35364
bnrclassfield_sanitize 3920
bnrclassfield_tower 266
bnrclassfieldvec 30968
compositum_red 2877
compute_beta 36743
compute_polrel 2996
cyclic_compos 35364
disc_primes 33789
downtoK 8988
futu 36624
get_badbnf 39739
get_mmu 5768
get_prlist 36743
get_tau 2877
get_z 42861
gsetvarn 229152
ideallifttoKz 2996
isprincipalell 53522
kervirtualunit 2877
lift_if_rational 72296
lifttoKz 889
list_Hecke 36743
logall 34573
matlogall 36743
max_smu 2543
mod_Xell_a 8988
nfV_to_logFlv 35490
nfX_Z_normalize 2996
nf_to_logFl 115332
nfcompositumall 448
powtau 5992
prconj 6720
prconj_in_list 91805
prlifttoKz 420
prlifttoKz_i 959
prlifttoKzall 539
reduce_mod_Qell 36742
reducebeta 36742
relative_pol 245
rnfkummer 721
rnfkummer_ell 2996
rnfkummer_init 2877
rnfkummer_initall 33768
rnfkummersimple 33747
split_pol 17976
subgroup_info 36743
to_alg 8764
vecsmall_balance 133

Generated by: LCOV version 1.16