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 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 19081-e84bc4a) Lines: 1899 2210 85.9 %
Date: 2016-07-01 Functions: 149 159 93.7 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 1052 1436 73.3 %

Function Name Sort by function name Hit count Sort by hit count
Decomp 23282
Flx_checkdeflate 99743
Flx_radical 99743
FpX_radical 3093
Fp_basis 40226
FqM_to_nfM 1176
FqV_to_nfV 7
FqX_non_root 21
FqX_to_nfX 3997
Fq_to_nf 39900
QpXV_denom 46242
QpX_denom 330099
QpX_remove_denom 139622
RgV_nffix 28
RgX_nffix 64085
Rg_nffix 186095
Rg_to_ff 1162924
ZX_Dedekind 95501
ZX_compositum_disjoint 385
ZX_rescale_inv 1330
Zlx_gcd 17765
Zlx_sylvester_echelon 186049
ZpM_hnfmodid 32403
ZpX_disc_val 27342
ZpX_gcd 23282
ZpX_reduced_resultant 78890
ZpX_reduced_resultant_fast 53347
ZpX_resultant_val 70378
ZpX_resultant_val_i 96838
ZpX_sylvester_echelon 12961
_msqr 2569
_sqr 8036
allbase2 0
allbase_from_maxord 5649
anti_uniformizer2 450539
checkmodpr 434
checkprid 1354389
companion 0
compmod 19866
compositum 35
compositum2 231
compositum_fix 805
dbasis 43484
diag_denom 5971
dim1proj 327454
disc_from_maxord 3129
errprime 0
fact_from_factors 70
ffdegree 434
fill 2016
fnz 36358
gen_if_principal 35
get_LV 14303
get_coprimes 70
get_d 1071
get_g 38374
get_gamma 38003
get_maxord 8785
get_modpr 2646
get_norm 472236
get_nu 59304
get_order 70
get_partial_order_as_pols 46242
get_powers 19705
get_pr 42361
get_prid 702912
get_proj_modT 143760
getprime 45976
ideal_is1 3311
idealprimedec 117588
idealprimedec_limit_f 410478
idealprimedec_limit_norm 180110
indexpartial 2373
init_m 123725
init_norm 14303
is_prid 2059849
is_pseudo_matrix 63
is_uniformizer 472236
lift_to_zk 11648
loop 18403
loop_init 24220
manage_cache 64610
matinv 0
maxord 95501
maxord2 0
maxord_i 32816
mk_pr 583954
modpr_TAU 453136
modpr_genFq 1848
modprinit 474406
mtran 0
mtran_long 0
mul_intersect 96342
mycaract 64610
newtoncharpoly 63672
newtonsums 64610
nextk 14
nfM_to_FqM 707
nfV_to_FqV 3427
nfX_to_FqX 12915
nf_to_Fq 1162490
nf_to_Fq_init 452842
nfbasis 56
nfbasis_gp 56
nfcompositum 448
nfdisc 3129
nfidealdet1 56
nfmaxord 5656
nfmaxord_check_args 8785
nfmodprinit 49
nfreducemodpr 434
nfsplitting 112
nilord 18823
ok_modpr 553385
p_is_prime 1001
pol_min 14903
polcompositum0 308
polsymmodp 38220
pradical 14303
primedec_apply_kummer 545293
primedec_aux 410478
primedec_end 14303
redelt 7112
redelt_i 10962
rnfallbase 1078
rnfbasis 21
rnfdedekind 77
rnfdedekind_i 1624
rnfdet 21
rnfdiscf 7
rnfeltid_powmod 2310
rnfhnfbasis 7
rnfisfree 7
rnfisfree_aux 7
rnfjoinmodules 1547
rnfjoinmodules_i 1008
rnfmaxord 1547
rnfpseudobasis 49
rnfsimplifybasis 0
rnfsteinitz 28
rowred 0
rowred_long 0
safe_Z_pvalrem 161
set_disc 8785
special_anti_uniformizer 209927
split_char 50211
testb2 7658
testc2 1463
to_ff_init 475053
triv_order 714
uniformizer 29955
update_den 522676
update_fact 238
update_phi 14574
vstar 47572
zk_to_Fq 536801
zk_to_Fq_init 22211
zkmodprinit 5093
zx_z_div 92402

Generated by: LCOV version 1.9