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.14.0 lcov report (development 27920-e0b3650d81) Lines: 855 866 98.7 %
Date: 2022-08-07 07:33:29 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
nfcompositumall 448
prlifttoKz 462
prlifttoKzall 553
rnfkummer 665
_rnfkummer_step4 861
_rnfkummer 931
lifttoKz 945
prlifttoKz_i 1015
tauofideal 1064
max_smu 2498
compositum_red 2828
get_tau 2828
kervirtualunit 2828
rnfkummer_init 2828
compute_polrel 2947
ideallifttoKz 2947
lambdaofvec 2947
nfX_Z_normalize 2947
rnfkummer_ell 2947
bnrclassfield_sanitize 3885
get_mmu 5691
powtau 5894
prconj 6621
to_alg 8638
downtoK 8862
mod_Xell_a 8862
lambdaofelt 9100
split_pol 17724
tauofvec 18130
bnrclassfieldvec 30946
rnfkummersimple 33739
rnfkummer_initall 33766
disc_primes 33789
bnrclassfield 33914
logall 34496
nfV_to_logFlv 34958
bnrclassfield_H 35319
bnrclassfield_primepower 35364
cyclic_compos 35364
bnf_cycgenmod 36568
futu 36568
get_prlist 36686
compute_beta 36687
list_Hecke 36687
matlogall 36687
reduce_mod_Qell 36687
reducebeta 36687
subgroup_info 36687
bid_primes 36736
get_badbnf 39633
get_z 42805
H_is_good 52669
isprincipalell 53466
lift_if_rational 54908
prconj_in_list 91559
nf_to_logFl 113008
gsetvarn 229152
tauofelt 261095

Generated by: LCOV version 1.13