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 21188-db834f2) Lines: 1314 1462 89.9 %
Date: 2017-10-20 06:23:07 Functions: 131 144 91.0 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
Q_nffactor 3094
RM_round_maxrank 39786
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 356257
_idealaddtoone 120631
_idealmulred 42855
_idealsqrred 61824
_mul 26420
_sqr 61824
addmul_col 53152
addmul_mat 23380
append 60029
chk_vdir 21
err_divexact 7
ext_inv 11301
ext_mul 145895
ext_pow 1275
ext_sqr 61768
factorbackprime 7196
famat_Z_gcd 0
famat_add 86955
famat_inv 11441
famat_inv_shallow 27034
famat_makecoprime 111906
famat_mul 111189
famat_mul_shallow 93967
famat_mulpow_shallow 63707
famat_pow 1275
famat_pow_shallow 61908
famat_reduce 17962
famat_sqr 51198
famat_to_Fp_coprime 789
famat_to_nf 0
famat_to_nf_moddivisor 10962
famatsmall_reduce 12715
get_random_a 78212
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 36734
idealHNF_factor 36734
idealHNF_inv 58111
idealHNF_inv_Z 192587
idealHNF_mul 311696
idealHNF_mul_two 632777
idealHNF_norm_pval 197123
idealHNF_val 213363
idealadd 58933
idealaddmultoone 35
idealaddtoone 98
idealaddtoone0 70
idealaddtoone_i 12229
idealaddtoone_raw 108402
idealappr 14
idealappr0 14
idealapprfact 0
idealapprfact_i 20361
idealcoprime 70
idealcoprimefact 12495
idealdiv 20797
idealdiv0 42
idealdivexact 777
idealdivpowprime 13468
idealfactor 39856
idealhnf 3101
idealhnf0 119
idealhnf_principal 268378
idealhnf_shallow 321823
idealhnf_two 108061
idealintersect 21
idealinv 97933
idealmin 7
idealmul 641176
idealmul0 56
idealmul_aux 641176
idealmulelt 196914
idealmulpowprime 67592
idealmulred 16435
idealnorm 6328
idealnumden 36951
idealpow 178822
idealpow0 42
idealpow_aux 178822
idealpowprime 88909
idealpowred 59437
idealpows 21196
idealprod 1463
idealprodprime 126
idealred0 165654
idealsqr 62524
idealsqr_aux 62524
idealsqrprime 44714
idealtwoelt 39628
idealtwoelt0 63
idealtwoelt2 42
idealtyp 3132077
idealval 493260
in_ideal 28
isideal 91
make_integral 5621
mat_ideal_two_elt 196297
mat_ideal_two_elt2 21
nf_coprime_part 140
nf_get_Gtwist 165661
nf_get_Gtwist1 26906
nf_remove_denom_p 264132
nf_to_Fp_coprime 4252
nfdivmodpr 0
nfkermodpr 0
nfmulmodpr 7
nfpowmodpr 0
nfsolvemodpr 0
not_in_ideal 14
ok_elt 150725
p_makecoprime 62083
prV_e_muls 3052
prV_lcm_capZ 34739
pr_hnf 1167187
pr_inv 3675
pr_inv_p 24521
pr_uniformizer 17387
to_Fp_coprime 5107
to_famat 0
to_famat_shallow 804478
trivial_merge 28
twistG 26948
u_ppo 30967965
vec_mulid 7
vecdiv 903
vecinv 0
vecmul 185192
vecpow 15729
zk_pvalrem 136501

Generated by: LCOV version 1.11