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-25 08:08:21 Functions: 154 165 93.3 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
Buchall 62232
Buchall_deg1 1155
Buchall_param 64787
FB_aut_perm 65840
FBgen 65838
Fincke_Pohst_bound 211358
Fincke_Pohst_ideal 211360
FlxqX_chinese_unit 1379
GRHchk 493294
GRHok 1526120
RgC_expbitprec 1166076
RgM_expbitprec 48433
RgV_is1 91
SPLIT 1337643
Sunits_archclean 77
Ur_ZC_mul 1321238
Vbase_to_FB 3307
ZM_remove_unused 164
ZV_divrem 1321239
ZV_mul 7074
Z_issmooth_prod 18936279
_nfnewprec 57505
act_arch 1984585
add 2126025
addRe_modIm 6585028
add_cyclotomic_units 63663
add_principal_part 31857
add_rel 2461418
add_rel_i 2970422
add_to_fact 29862
already_known 2966337
assign_subFB 66990
automorphism_matrices 63685
automorphism_perms 63623
bad_check 73564
bad_subFB 271594
ballvol 65838
be_honest 7
bnf_build_cheapfu 263504
bnf_build_cycgen 26726
bnf_build_matalpha 20
bnf_build_units 32048
bnf_compactfu 37135
bnf_compactfu_mat 70
bnf_get_B 2642490
bnf_get_C 2676972
bnf_get_GD 276574
bnf_get_Ur 1321238
bnf_get_W 1326211
bnf_get_ga 271618
bnf_get_vbase 1321318
bnf_has_fu 263784
bnfinit0 2555
bnfisprincipal0 1766734
bnfnewprec 21
bnfnewprec_shallow 97
bnftestprimes 63
bnrnewprec 7
bnrnewprec_shallow 0
buchall_end 64778
cache_prime_dec 915371
can_factor 19711061
chinese_unit 94
chinese_unit_slice 274
chinese_unit_worker 274
class_group_gen 63622
clean_cols 90434
cleanarch 2923632
cleanarchunit 132580
compute_R 73616
compute_invres 63623
compute_multiple_of_R 106280
compute_multiple_of_R_pivot 3137431
dbg_newrel 0
delete_FB 65840
delete_cache 63663
diagact_arch 63718
divide_p 6526438
divide_p_elt 5815812
divide_p_id 162968
divide_p_quo 547758
dump_gen 1157212
err_units 0
expand 0
expandext 31880
expbitprec 2683776
extract_full_lattice 63622
fact_ok 1157820
factorgen 1500987
fixarch 1235027
free_GRHcheck 133880
genback 28728
get_archclean 40
get_clg2 63718
get_embs 106735
get_fs 7459950
get_log_embed 729808
get_norm_fact 1160465
get_norm_fact_primes 69
get_pr_lists 1321298
get_random_ideal 16978
get_regulator 63718
get_y 69
getfu 63622
i2print 0
idealHNF_mulred 3561
idealmulpowprime2 4544
init_GRHcheck 133880
init_famat 65364
init_red_mod_units 1039008
init_rel 63662
inv_fact 0
isprincipal 174478
isprincipalall 1337551
isprincipalarch 1166075
isprincipalfact 31880
isprincipalfact_or_fail 0
isprincipalforce 0
isprincipalgen 0
isprincipalgenforce 0
log2Mbound 94
log2fubound 94
makecycgen 4956
makematal 20
makeunits 24894
matbotid 62095
matbotidembs 38787
matenlarge 38787
modIm 201218
myprecdbl 75
needed_bitprec 3778
nf_cxlog_normalize 195050
nfcyclotomicunits 63663
nfsign_from_logarch 148716
nfsign_fu 228253
nfsign_tu 227005
nfsign_units 35
not_given 375
nthideal 63622
pr_index 3307
pr_orbit_fill 11865
pre_allocate 106764
prec_arch 1339404
primeneeded 63623
reallocate 63755
recover_partFB 1321298
red_mod_units 1039009
rel_embed 1023240
rnd_rel 16978
set_fact 2290424
set_rel_alpha 936872
signunits 7
small_norm 89745
split_ideal 1321235
step 30241301
store 9298272
subFB_change 5323
subFBgen 65837
tailres 1122641
tailresback 2245273
trim_list 106764
triv_gen 461128
try_elt 8687
vec_chinese_units 94
wr_rel 0

Generated by: LCOV version 1.14