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 - buch2.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.18.0 lcov report (development 29712-7c8a932571) Lines: 2197 2397 91.7 %
Date: 2024-11-15 09:08:45 Functions: 155 166 93.4 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
Buchall 62366
Buchall_deg1 1176
Buchall_param 64977
FB_aut_perm 66038
FBgen 66038
Fincke_Pohst_bound 264009
Fincke_Pohst_ideal 264012
FlxqX_chinese_unit 1379
GRHchk 494661
GRHok 1528633
RgC_expbitprec 1167050
RgM_expbitprec 48566
RgV_is1 105
SPLIT 1338691
SPLIT_i 1204348
Sunits_archclean 77
Ur_ZC_mul 1322283
Vbase_to_FB 3349
ZM_remove_unused 164
ZV_divrem 1322286
ZV_mul 7283
_nfnewprec 57730
act_arch 1986742
add 2128093
addRe_modIm 6593865
add_cyclotomic_units 63860
add_principal_part 32152
add_rel 2412711
add_rel_i 2889921
add_to_fact 2831404
already_known 2885792
assign_subFB 66778
automorphism_matrices 63852
automorphism_perms 63789
bad_check 95542
bad_subFB 306145
ballvol 66037
be_honest 7
bnf_build_cheapfu 263704
bnf_build_cycgen 26726
bnf_build_matalpha 20
bnf_build_units 32055
bnf_compactfu 37191
bnf_compactfu_mat 70
bnf_get_B 2644582
bnf_get_C 2679097
bnf_get_GD 276793
bnf_get_Ur 1322283
bnf_get_W 1327258
bnf_get_ga 271837
bnf_get_vbase 1322365
bnf_has_fu 263983
bnfinit0 2611
bnfisprincipal0 1769270
bnfnewprec 7
bnfnewprec_shallow 97
bnftestprimes 63
bnrnewprec 7
bnrnewprec_shallow 0
buchall_end 64966
cache_prime_dec 918001
can_factor 18001195
chinese_unit 94
chinese_unit_slice 274
chinese_unit_worker 274
class_group_gen 63791
clean_cols 91654
cleanarch 2927672
cleanarchunit 132976
compute_R 95604
compute_invres 63791
compute_multiple_of_R 120270
compute_multiple_of_R_pivot 557795
dbg_newrel 0
delete_FB 66037
delete_cache 63861
diagact_arch 63887
divide_p 5397753
divide_p_elt 2276
divide_p_id 163556
divide_p_quo 5231923
dump_gen 1158017
err_units 0
expand 0
expandext 32173
expbitprec 2686610
extract_full_lattice 63798
fact_ok 1158567
fact_update 1971620
factorgen 16659064
fixarch 1236218
free_GRHcheck 134154
genback 28812
get_archclean 40
get_clg2 63887
get_embs 120963
get_fs 7481746
get_log_embed 720930
get_norm_fact 1161436
get_norm_fact_primes 69
get_pr_lists 1322346
get_random_ideal 54883
get_regulator 48662
get_y 69
getfu 63791
i2print 0
idealHNF_mulred 3522
idealmulpowprime2 4488
init_GRHcheck 134152
init_famat 65539
init_red_mod_units 1039916
init_rel 63861
inv_fact 0
isprincipal 174534
isprincipalall 1338645
isprincipalarch 1167045
isprincipalfact 32173
isprincipalfact_or_fail 0
isprincipalforce 0
isprincipalgen 0
isprincipalgenforce 0
log2Mbound 94
log2fubound 94
makecycgen 4956
makematal 20
makeunits 24901
matbotid 62251
matbotidembs 54265
matenlarge 54267
modIm 201903
myprecdbl 73
needed_bitprec 3831
nf_cxlog_normalize 194923
nfcyclotomicunits 63860
nfsign_from_logarch 148888
nfsign_fu 228320
nfsign_tu 227144
nfsign_units 35
not_given 389
nthideal 63791
pr_index 3349
pr_orbit_fill 11865
pre_allocate 121000
prec_arch 1340433
primeneeded 63791
reallocate 63861
recover_partFB 1322346
red_mod_units 1039917
rel_embed 1007657
rnd_rel 54882
set_fact 2240846
set_rel_alpha 939043
signunits 7
small_norm 66048
split_ideal 1322282
step 28016740
store 9118786
subFB_change 26202
subFBgen 66038
tailres 1125590
tailresback 2251176
trim_list 121000
triv_gen 462861
try_elt 1581
vec_chinese_units 94
wr_rel 0

Generated by: LCOV version 1.16