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 20924-e159ed0) Lines: 1314 1462 89.9 %
Date: 2017-08-21 06:23:16 Functions: 131 144 91.0 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
Q_nffactor 3059
RM_round_maxrank 39702
ZM_Q_mul 66273
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 356250
_idealaddtoone 120617
_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 7189
famat_Z_gcd 0
famat_add 86819
famat_inv 11441
famat_inv_shallow 27034
famat_makecoprime 111899
famat_mul 111019
famat_mul_shallow 93887
famat_mulpow_shallow 63707
famat_pow 1268
famat_pow_shallow 61908
famat_reduce 17948
famat_sqr 51125
famat_to_Fp_coprime 792
famat_to_nf 0
famat_to_nf_moddivisor 10962
famatsmall_reduce 12727
get_random_a 80415
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 37010
idealHNF_factor 37010
idealHNF_inv 58090
idealHNF_inv_Z 192443
idealHNF_mul 311293
idealHNF_mul_two 632313
idealHNF_norm_pval 201345
idealHNF_val 218866
idealadd 58919
idealaddmultoone 35
idealaddtoone 98
idealaddtoone0 70
idealaddtoone_i 12229
idealaddtoone_raw 108388
idealappr 14
idealappr0 14
idealapprfact 0
idealapprfact_i 20665
idealcoprime 70
idealcoprimefact 12495
idealdiv 20797
idealdiv0 42
idealdivexact 763
idealdivpowprime 13475
idealfactor 40097
idealhnf 3101
idealhnf0 119
idealhnf_principal 268357
idealhnf_shallow 321781
idealhnf_two 111000
idealintersect 21
idealinv 97912
idealmin 7
idealmul 641047
idealmul0 56
idealmul_aux 641047
idealmulelt 196900
idealmulpowprime 67599
idealmulred 16440
idealnorm 6286
idealnumden 37227
idealpow 178802
idealpow0 42
idealpow_aux 178802
idealpowprime 88903
idealpowred 59400
idealpows 21196
idealprod 1463
idealprodprime 126
idealred0 165574
idealsqr 62451
idealsqr_aux 62451
idealsqrprime 44606
idealtwoelt 42208
idealtwoelt0 63
idealtwoelt2 42
idealtyp 3138006
idealval 496656
in_ideal 28
isideal 91
make_integral 5614
mat_ideal_two_elt 198865
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 4252
nfdivmodpr 0
nfkermodpr 0
nfmulmodpr 7
nfpowmodpr 0
nfsolvemodpr 0
not_in_ideal 14
ok_elt 155491
p_makecoprime 62083
prV_e_muls 3031
prV_lcm_capZ 35043
pr_hnf 1167171
pr_inv 3675
pr_inv_p 24543
pr_uniformizer 18130
to_Fp_coprime 5112
to_famat 0
to_famat_shallow 804461
trivial_merge 28
twistG 26913
u_ppo 30967965
vec_mulid 7
vecdiv 903
vecinv 0
vecmul 180278
vecpow 15729
zk_pvalrem 136487

Generated by: LCOV version 1.11