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.0 lcov report (development 29712-7c8a932571) Lines: 855 866 98.7 %
Date: 2024-11-15 09:08:45 Functions: 61 61 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 700
_rnfkummer_step4 868
lifttoKz 889
prlifttoKz_i 959
_rnfkummer 966
tauofideal 1071
max_smu 2548
compositum_red 2877
get_tau 2877
kervirtualunit 2877
rnfkummer_init 2877
compute_polrel 2996
ideallifttoKz 2996
lambdaofvec 2996
nfX_Z_normalize 2996
rnfkummer_ell 2996
bnrclassfield_sanitize 3920
get_mmu 5768
powtau 5992
prconj 6699
to_alg 8764
downtoK 8988
mod_Xell_a 8988
lambdaofelt 9233
split_pol 17976
tauofvec 18333
bnrclassfieldvec 30968
rnfkummersimple 33747
rnfkummer_initall 33788
disc_primes 33810
bnrclassfield 33936
logall 34580
bnrclassfield_H 35342
bnrclassfield_primepower 35385
cyclic_compos 35385
nfV_to_logFlv 35560
bnf_cycgenmod 36623
futu 36623
compute_beta 36743
get_prlist 36743
list_Hecke 36743
matlogall 36743
reduce_mod_Qell 36743
reducebeta 36743
subgroup_info 36743
bid_primes 36806
get_badbnf 39739
get_z 42866
H_is_good 52702
isprincipalell 53522
lift_if_rational 67949
prconj_in_list 91761
nf_to_logFl 115556
gsetvarn 229152
tauofelt 282185

Generated by: LCOV version 1.16