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-bordeaux1.fr machine (x86_64 architecture), and agregate them in the final report:

The target is 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.8.0 lcov report (development 17846-16c9112) Lines: 1893 2201 86.0 %
Date: 2015-05-26 Functions: 150 160 93.8 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 1041 1420 73.3 %

Function Name Sort by function name Hit count Sort by hit count
Decomp 23303
Flx_checkdeflate 99090
Flx_radical 99090
FpX_radical 3094
Fp_basis 38609
FqM_to_nfM 924
FqV_to_nfV 7
FqX_non_root 21
FqX_to_nfX 3136
Fq_to_nf 36743
QpXV_denom 46298
QpX_denom 323330
QpX_remove_denom 130879
RgV_nffix 28
RgX_nffix 66024
Rg_nffix 190050
Rg_to_ff 943327
ZX_Dedekind 94864
ZX_compositum_disjoint 385
ZX_rescale_inv 1281
Zlx_gcd 17765
Zlx_sylvester_echelon 185992
ZpM_hnfmodid 32340
ZpX_disc_val 27356
ZpX_gcd 23303
ZpX_reduced_resultant 78561
ZpX_reduced_resultant_fast 52892
ZpX_resultant_val 70574
ZpX_resultant_val_i 97153
ZpX_sylvester_echelon 13025
_msqr 2471
_sqr 7868
allbase2 0
allbase_from_maxord 4424
anti_uniformizer2 320955
checkmodpr 434
checkprid 1031205
companion 0
compmod 19985
compositum 35
compositum2 231
compositum_fix 763
dbasis 43421
diag_denom 5971
dim1proj 241165
disc_from_maxord 3108
errprime 0
fact_from_factors 63
ffdegree 434
fill 1736
fnz 38164
gen_if_principal 35
get_LV 13463
get_coprimes 77
get_d 728
get_g 38444
get_gamma 38143
get_maxord 7539
get_modpr 2506
get_norm 390963
get_nu 59346
get_order 70
get_partial_order_as_pols 46298
get_powers 17507
get_pr 40366
get_prid 550816
get_proj_modT 99394
getprime 45955
ideal_is1 3017
idealprimedec 112459
idealprimedec_limit_f 343791
idealprimedec_limit_norm 154714
indexpartial 2219
init_m 123466
init_norm 13463
is_prid 1584569
is_pseudo_matrix 63
is_uniformizer 390963
kill_cache 19936
lift_to_zk 8246
loop 18487
loop_init 24213
manage_cache 55650
matinv 0
maxord 94864
maxord2 0
maxord_i 32732
mk_pr 483041
modpr_TAU 323209
modpr_genFq 483
modprinit 342309
mtran 0
mtran_long 0
mul_intersect 92415
mycaract 55650
newtoncharpoly 54691
newtonsums 55650
nextk 7
nfM_to_FqM 581
nfV_to_FqV 3287
nfX_to_FqX 11235
nf_to_Fq 942893
nf_to_Fq_init 322887
nfbasis 56
nfbasis_gp 56
nfcompositum 406
nfdisc 3108
nfidealdet1 56
nfmaxord 4431
nfmaxord_check_args 7539
nfmodprinit 49
nfreducemodpr 434
nfsplitting 70
nilord 18767
ok_modpr 553091
p_is_prime 1015
pol_min 14259
polcompositum0 308
polsymmodp 30989
pradical 13463
primedec_apply_kummer 446284
primedec_aux 343791
primedec_end 13463
redelt 7070
redelt_i 10948
rnfallbase 735
rnfbasis 21
rnfdedekind 77
rnfdedekind_i 1253
rnfdet 21
rnfdiscf 7
rnfeltid_powmod 2142
rnfhnfbasis 7
rnfisfree 7
rnfisfree_aux 7
rnfjoinmodules 1176
rnfjoinmodules_i 868
rnfmaxord 1176
rnfpseudobasis 49
rnfsimplifybasis 0
rnfsteinitz 28
rowred 0
rowred_long 0
safe_Z_pvalrem 112
set_disc 7539
special_anti_uniformizer 175711
split_char 50358
testb2 7651
testc2 1498
to_ff_init 342585
triv_order 476
uniformizer 28611
update_den 482440
update_fact 238
update_phi 14518
vstar 47516
zk_to_Fq 417878
zk_to_Fq_init 19698
zkmodprinit 5093
zx_z_div 91764

Generated by: LCOV version 1.9