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 - base2.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.18.0 lcov report (development 29712-7c8a932571) Lines: 2213 2338 94.7 %
Date: 2024-11-15 09:08:45 Functions: 168 172 97.7 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
FqV_to_nfV 0
ZpX_primedec 0
errprime 0
rnfsimplifybasis 0
nfmodprinit 7
rnfhnfbasis 7
rnfisfree 7
rnfdet 14
FqX_non_root 21
rnfbasis 21
rnfsteinitz 28
gen_if_principal 35
poldiscfactors 42
RgV_nffix 49
get_module 63
nfidealdet1 63
nfmodprinit0 70
nfmodprlift 77
rnfdiscf 77
compositum 91
rnfdedekind 91
Z_fac 183
QXQV_to_FpM 203
checkmodpr 210
nfreducemodpr 210
get_coprimes 273
nfmodpr 329
idealprimedec_degrees 371
fix_PE 477
ZpX_monic_factor 490
nfcompositum_lambda 497
ZpX_round4 770
expo_is_squarefree 812
rnfdisc_factored 854
nfbasis 938
ZpX_monic_factor_squarefree 1071
triv_order 1289
RgX_to_algX 1638
nfX_to_monic 1652
p_is_prime 2153
update_fact 2153
rnfjoinmodules 2316
rnfallbase 2590
get_d 2646
compositum2 2877
fact_from_factors 3619
ffdegree 4109
pr_factorback 4347
pr_factorback_scal 4347
modpr_genFq 4403
rnfmaxord 4816
nfX_sub 4865
rnfdedekind_i 4900
FpX_radical 5528
nfM_to_FqM 5809
idealprimedec_galois 6552
rnfjoinmodules_i 6684
FqM_to_nfM 10610
nfX_to_FqX 10850
_msqr 11557
safe_Z_pvalrem 12355
FqX_to_nfX 12655
polcompositum0 12837
fill 13368
nfcompositum 13376
minval 15966
zk_to_Fq_init 18739
rnfeltid_powmod 22203
compositum_fix 26527
ideal_is1 28355
nf_pV_to_prV 38563
indexpartial 44107
redelt 48135
testc2 48135
ZX_rescale_inv 59836
nfXQ_mul 62922
nfX_rem 62922
redelt_i 63663
nfdisc 66465
testb2 66787
nfX_mul 67787
_sqr 71293
ZpX_sylvester_echelon 72948
lift_to_zk 91671
diag_denom 98070
nfmaxord 101288
pol_min 117123
get_modpr 137746
get_powers 158747
nfV_to_FqV 167403
zkmodprinit 175425
ZpX_disc_val 182422
init_norm 214292
pradical 214325
get_LV 214326
primedec_end 214326
fnz 216685
loop 237150
Zlx_gcd 245038
ZpX_gcd 253220
Decomp 253222
update_phi 275213
compmod 285279
uniformizer 296122
get_gamma 299996
RgX_nffix 303538
Fp_basis 306583
ei_msqr_mod 347324
get_g 353055
progress 392199
get_pr 411136
ZpM_hnfmodid 451970
maxord_i 452734
split_char 475920
is_uniformizer 501684
get_norm 501691
idealprimedec_limit_norm 505223
QpXV_denom 505866
get_partial_order_as_pols 505872
getprime 559026
dbasis 618076
vstar 619577
get_nu 636208
nfdiscfactors 644764
diag_denomval 685685
newtoncharpoly 693542
manage_cache 700240
mycaract 700305
newtonsums 700317
mul_intersect 700862
maxord_disc 711220
pow_ei_mod_p 737258
setPE 746017
poldiscfactors_i 788546
set_disc 812471
get_maxord 812507
nfmaxord_check_args 812511
sqr_mod 821263
Rg_nffix 906129
ZpX_reduced_resultant_fast 927636
get_prid 939099
pr_anti_uniformizer 967455
ZpX_reduced_resultant 987334
dim1proj 1030705
modprinit 1158868
idealprimedec 1273309
zx_z_div 1526769
ZX_Dedekind 1532355
maxord 1532356
Flx_radical 1594839
Flx_checkdeflate 1594858
QpX_remove_denom 1730944
idealprimedec_limit_f 2701217
primedec_aux 2708117
QpX_denom 2727664
Fq_to_nf 3239251
ZpX_resultant_val 3446360
ZpX_resultant_val_i 3490547
nf_to_Fq_init 3513341
modpr_TAU 3526265
update_den 3530125
to_ff_init 3532100
idealprimedec_kummer 3801024
mk_pr 4257056
ok_modpr 4364528
init_m 4373932
Zlx_sylvester_echelon 4658202
zk_to_Fq 7126673
nf_to_Fq 15206856
Rg_to_ff 15207360
checkprid 17934264
checkprid_i 22903983

Generated by: LCOV version 1.16