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 29463-1101ba1c32) Lines: 2190 2395 91.4 %
Date: 2024-07-22 09:03:30 Functions: 155 166 93.4 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
Buchall 62227
Buchall_deg1 1155
Buchall_param 64835
FB_aut_perm 65927
FBgen 65926
Fincke_Pohst_bound 201183
Fincke_Pohst_ideal 201184
FlxqX_chinese_unit 1499
GRHchk 493841
GRHok 1527130
RgC_expbitprec 1167059
RgM_expbitprec 48480
RgV_is1 105
SPLIT 1338679
SPLIT_i 1204393
Sunits_archclean 77
Ur_ZC_mul 1322276
Vbase_to_FB 3335
ZM_remove_unused 171
ZV_divrem 1322276
ZV_mul 7277
_nfnewprec 56727
act_arch 1986257
add 2127843
addRe_modIm 6591414
add_cyclotomic_units 63749
add_principal_part 32145
add_rel 2446932
add_rel_i 2924674
add_to_fact 2866909
already_known 2920569
assign_subFB 66110
automorphism_matrices 63741
automorphism_perms 63679
bad_check 73227
bad_subFB 275223
ballvol 65927
be_honest 7
bnf_build_cheapfu 263549
bnf_build_cycgen 26726
bnf_build_matalpha 20
bnf_build_units 32048
bnf_compactfu 37135
bnf_compactfu_mat 70
bnf_get_B 2644567
bnf_get_C 2679072
bnf_get_GD 276785
bnf_get_Ur 1322276
bnf_get_W 1327249
bnf_get_ga 271829
bnf_get_vbase 1322356
bnf_has_fu 263829
bnfinit0 2611
bnfisprincipal0 1769198
bnfnewprec 7
bnfnewprec_shallow 97
bnftestprimes 63
bnrnewprec 7
bnrnewprec_shallow 0
buchall_end 64833
cache_prime_dec 916321
can_factor 19765931
chinese_unit 101
chinese_unit_slice 297
chinese_unit_worker 297
class_group_gen 63679
clean_cols 78967
cleanarch 2926954
cleanarchunit 132695
compute_R 73294
compute_invres 63679
compute_multiple_of_R 94678
compute_multiple_of_R_pivot 516307
dbg_newrel 0
delete_FB 65926
delete_cache 63750
diagact_arch 63776
divide_p 5501769
divide_p_elt 2259
divide_p_id 163445
divide_p_quo 5336070
dump_gen 1158029
err_units 0
expand 0
expandext 32166
expbitprec 2685780
extract_full_lattice 63679
fact_ok 1158576
fact_update 1906093
factorgen 18423173
fixarch 1236071
free_GRHcheck 134014
genback 28784
get_archclean 40
get_clg2 63776
get_embs 95085
get_fs 7471729
get_log_embed 722703
get_norm_fact 1161447
get_norm_fact_primes 69
get_pr_lists 1322337
get_random_ideal 5887
get_regulator 63775
get_y 69
getfu 63679
i2print 0
idealHNF_mulred 3483
idealmulpowprime2 4474
init_GRHcheck 134012
init_famat 65420
init_red_mod_units 1039949
init_rel 63750
inv_fact 0
isprincipal 174513
isprincipalall 1338628
isprincipalarch 1167059
isprincipalfact 32166
isprincipalfact_or_fail 0
isprincipalforce 0
isprincipalgen 0
isprincipalgenforce 0
log2Mbound 101
log2fubound 101
makecycgen 4956
makematal 20
makeunits 24894
matbotid 62140
matbotidembs 28573
matenlarge 28573
modIm 201386
myprecdbl 80
needed_bitprec 3831
nf_cxlog_normalize 194925
nfcyclotomicunits 63749
nfsign_from_logarch 148685
nfsign_fu 228206
nfsign_tu 227046
nfsign_units 35
not_given 389
nthideal 63679
pr_index 3335
pr_orbit_fill 11865
pre_allocate 95126
prec_arch 1340426
primeneeded 63678
reallocate 63750
recover_partFB 1322321
red_mod_units 1039948
rel_embed 997601
rnd_rel 5887
set_fact 2275310
set_rel_alpha 929014
signunits 7
small_norm 89169
split_ideal 1322273
step 30413623
store 9245640
subFB_change 1853
subFBgen 65927
tailres 1123701
tailresback 2247385
trim_list 95126
triv_gen 462798
try_elt 1618
vec_chinese_units 101
wr_rel 0

Generated by: LCOV version 1.16