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.16.2 lcov report (development 29115-f22e516b23) Lines: 2208 2407 91.7 %
Date: 2024-04-28 08:07:55 Functions: 154 165 93.3 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
Buchall 62234
Buchall_deg1 1155
Buchall_param 64788
FB_aut_perm 65837
FBgen 65836
Fincke_Pohst_bound 210984
Fincke_Pohst_ideal 210985
FlxqX_chinese_unit 1379
GRHchk 493299
GRHok 1526125
RgC_expbitprec 1166077
RgM_expbitprec 48433
RgV_is1 91
SPLIT 1337642
Sunits_archclean 77
Ur_ZC_mul 1321238
Vbase_to_FB 3307
ZM_remove_unused 164
ZV_divrem 1321239
ZV_mul 7074
Z_issmooth_prod 18935254
_nfnewprec 57505
act_arch 1984589
add 2126034
addRe_modIm 6584975
add_cyclotomic_units 63661
add_principal_part 31859
add_rel 2460509
add_rel_i 2968242
add_to_fact 29426
already_known 2964164
assign_subFB 66960
automorphism_matrices 63686
automorphism_perms 63622
bad_check 73527
bad_subFB 271580
ballvol 65836
be_honest 7
bnf_build_cheapfu 263495
bnf_build_cycgen 26726
bnf_build_matalpha 20
bnf_build_units 32047
bnf_compactfu 37134
bnf_compactfu_mat 70
bnf_get_B 2642491
bnf_get_C 2676969
bnf_get_GD 276574
bnf_get_Ur 1321238
bnf_get_W 1326211
bnf_get_ga 271618
bnf_get_vbase 1321319
bnf_has_fu 263775
bnfinit0 2555
bnfisprincipal0 1766735
bnfnewprec 21
bnfnewprec_shallow 97
bnftestprimes 63
bnrnewprec 7
bnrnewprec_shallow 0
buchall_end 64778
cache_prime_dec 915393
can_factor 19709884
chinese_unit 94
chinese_unit_slice 274
chinese_unit_worker 274
class_group_gen 63623
clean_cols 90072
cleanarch 2923620
cleanarchunit 132578
compute_R 73577
compute_invres 63623
compute_multiple_of_R 105918
compute_multiple_of_R_pivot 3057319
dbg_newrel 0
delete_FB 65838
delete_cache 63661
diagact_arch 63719
divide_p 6525081
divide_p_elt 5814850
divide_p_id 162967
divide_p_quo 547415
dump_gen 1157213
err_units 0
expand 0
expandext 31880
expbitprec 2683781
extract_full_lattice 63623
fact_ok 1157821
factorgen 1500433
fixarch 1235031
free_GRHcheck 133881
genback 28728
get_archclean 40
get_clg2 63719
get_embs 106370
get_fs 7459994
get_log_embed 729392
get_norm_fact 1160465
get_norm_fact_primes 69
get_pr_lists 1321299
get_random_ideal 16628
get_regulator 63718
get_y 69
getfu 63620
i2print 0
idealHNF_mulred 3561
idealmulpowprime2 4544
init_GRHcheck 133879
init_famat 65364
init_red_mod_units 1039007
init_rel 63661
inv_fact 0
isprincipal 174478
isprincipalall 1337551
isprincipalarch 1166079
isprincipalfact 31880
isprincipalfact_or_fail 0
isprincipalforce 0
isprincipalgen 0
isprincipalgenforce 0
log2Mbound 94
log2fubound 94
makecycgen 4956
makematal 20
makeunits 24893
matbotid 62093
matbotidembs 38425
matenlarge 38425
modIm 201214
myprecdbl 75
needed_bitprec 3778
nf_cxlog_normalize 195050
nfcyclotomicunits 63661
nfsign_from_logarch 148715
nfsign_fu 228255
nfsign_tu 227005
nfsign_units 35
not_given 375
nthideal 63623
pr_index 3307
pr_orbit_fill 11865
pre_allocate 106399
prec_arch 1339403
primeneeded 63623
reallocate 63750
recover_partFB 1321299
red_mod_units 1039009
rel_embed 1022296
rnd_rel 16628
set_fact 2289473
set_rel_alpha 936758
signunits 7
small_norm 89732
split_ideal 1321236
step 30239769
store 9296575
subFB_change 5246
subFBgen 65837
tailres 1122663
tailresback 2245314
trim_list 106399
triv_gen 461128
try_elt 8250
vec_chinese_units 94
wr_rel 0

Generated by: LCOV version 1.14