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 - base4.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.10.0 lcov report (development 20777-d2a9243) Lines: 1314 1462 89.9 %
Date: 2017-06-25 05:59:24 Functions: 131 144 91.0 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
Q_nffactor 2982
RM_round_maxrank 39548
ZM_Q_mul 66231
ZM_famat_limit 55958
ZV_cba 0
ZV_cba_extend 0
Z_cba 344645
Z_cba_rec 3069115
Z_dcba_rec 0
Z_ppgle 0
Z_ppio 452893
Z_ppo 355529
_idealaddtoone 120050
_idealmulred 42822
_idealsqrred 61751
_mul 26382
_sqr 61751
addmul_col 53264
addmul_mat 23387
append 59889
chk_vdir 21
err_divexact 7
ext_inv 11301
ext_mul 145725
ext_pow 1268
ext_sqr 61695
factorbackprime 7098
famat_Z_gcd 0
famat_add 86819
famat_inv 11441
famat_inv_shallow 27034
famat_makecoprime 111899
famat_mul 111019
famat_mul_shallow 93838
famat_mulpow_shallow 63693
famat_pow 1268
famat_pow_shallow 61894
famat_reduce 17885
famat_sqr 51125
famat_to_Fp_coprime 792
famat_to_nf 0
famat_to_nf_moddivisor 10934
famatsmall_reduce 12649
get_random_a 80394
gpidealval 6573
hnf_QC_QC 7
hnf_Q_Q 21
hnf_Q_QC 28
hnf_Z_QC 21
hnf_Z_ZC 28
idealHNF_Z_factor 36898
idealHNF_factor 36898
idealHNF_inv 58062
idealHNF_inv_Z 192415
idealHNF_mul 311251
idealHNF_mul_two 632229
idealHNF_norm_pval 201380
idealHNF_val 218887
idealadd 58856
idealaddmultoone 35
idealaddtoone 98
idealaddtoone0 70
idealaddtoone_i 12229
idealaddtoone_raw 107821
idealappr 14
idealappr0 14
idealapprfact 0
idealapprfact_i 20665
idealcoprime 70
idealcoprimefact 12495
idealdiv 20797
idealdiv0 42
idealdivexact 714
idealdivpowprime 13349
idealfactor 39908
idealhnf 3073
idealhnf0 119
idealhnf_principal 269001
idealhnf_shallow 321809
idealhnf_two 109327
idealintersect 21
idealinv 97884
idealmin 7
idealmul 641033
idealmul0 56
idealmul_aux 641033
idealmulelt 196900
idealmulpowprime 67431
idealmulred 16440
idealnorm 6125
idealnumden 37115
idealpow 178578
idealpow0 42
idealpow_aux 178578
idealpowprime 88588
idealpowred 59400
idealpows 21168
idealprod 1463
idealprodprime 126
idealred0 165574
idealsqr 62451
idealsqr_aux 62451
idealsqrprime 44473
idealtwoelt 42019
idealtwoelt0 63
idealtwoelt2 42
idealtyp 3139861
idealval 499029
in_ideal 28
isideal 91
make_integral 5614
mat_ideal_two_elt 198697
mat_ideal_two_elt2 21
nf_coprime_part 140
nf_get_Gtwist 165581
nf_get_Gtwist1 26871
nf_remove_denom_p 264118
nf_to_Fp_coprime 4260
nfdivmodpr 0
nfkermodpr 0
nfmulmodpr 7
nfpowmodpr 0
nfsolvemodpr 0
not_in_ideal 14
ok_elt 155470
p_makecoprime 62083
prV_e_muls 2982
prV_lcm_capZ 35029
pr_hnf 1167314
pr_inv 3675
pr_inv_p 24543
pr_uniformizer 18130
to_Fp_coprime 5120
to_famat 0
to_famat_shallow 804419
trivial_merge 28
twistG 26913
u_ppo 30938509
vec_mulid 7
vecdiv 903
vecinv 0
vecmul 179515
vecpow 15729
zk_pvalrem 136487

Generated by: LCOV version 1.11