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 21501-1931cb9) Lines: 1312 1457 90.0 %
Date: 2017-12-16 06:20:36 Functions: 132 145 91.0 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
Q_nffactor 3101
RM_round_maxrank 39527
ZM_famat_limit 55930
ZV_cba 0
ZV_cba_extend 0
Z_cba 344638
Z_cba_rec 3068744
Z_dcba_rec 0
Z_ppgle 0
Z_ppio 452893
Z_ppo 356523
_idealaddtoone 120421
_idealmulred 42745
_idealsqrred 61646
_mul 26305
_sqr 61646
addmul_col 51962
addmul_mat 22967
append 59742
chk_vdir 21
err_divexact 7
ext_inv 10930
ext_mul 145231
ext_pow 1177
ext_sqr 61590
factorbackprime 7203
famat_Z_gcd 0
famat_add 86402
famat_inv 11070
famat_inv_shallow 27020
famat_makecoprime 111640
famat_mul 110525
famat_mul_shallow 93859
famat_mulpow_shallow 59234
famat_mulpows_shallow 4466
famat_pow 1177
famat_pow_shallow 59108
famat_pows_shallow 2807
famat_reduce 17983
famat_sqr 51020
famat_to_Fp_coprime 787
famat_to_nf 0
famat_to_nf_moddivisor 10983
famatsmall_reduce 12724
get_random_a 77323
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 36792
idealHNF_factor 36792
idealHNF_inv 55619
idealHNF_inv_Z 191564
idealHNF_mul 308988
idealHNF_mul_two 630134
idealHNF_norm_pval 202067
idealHNF_val 218816
idealadd 59416
idealaddmultoone 35
idealaddtoone 98
idealaddtoone0 70
idealaddtoone_i 12201
idealaddtoone_raw 108220
idealappr 14
idealappr0 14
idealapprfact 0
idealapprfact_i 20412
idealcoprime 70
idealcoprimefact 12537
idealdiv 20804
idealdiv0 42
idealdivexact 777
idealdivpowprime 13482
idealfactor 39921
idealhnf 3094
idealhnf0 119
idealhnf_principal 267601
idealhnf_shallow 320843
idealhnf_two 107843
idealintersect 21
idealinv 95357
idealmin 7
idealmul 640858
idealmul0 56
idealmul_aux 640858
idealmulelt 196571
idealmulpowprime 67620
idealmulred 16440
idealnorm 6328
idealnumden 37009
idealpow 178396
idealpow0 42
idealpow_aux 178396
idealpowprime 88903
idealpowred 59092
idealpows 21196
idealprod 1470
idealprodprime 126
idealred0 164737
idealsqr 62353
idealsqr_aux 62353
idealsqrprime 44641
idealtwoelt 38151
idealtwoelt0 63
idealtwoelt2 42
idealtyp 3116512
idealval 488507
in_ideal 28
isideal 91
make_integral 5621
mat_ideal_two_elt 194556
mat_ideal_two_elt2 21
nf_coprime_part 140
nf_get_Gtwist 164744
nf_get_Gtwist1 26871
nf_remove_denom_p 263600
nf_to_Fp_coprime 4254
nfdivmodpr 0
nfkermodpr 0
nfmulmodpr 7
nfpowmodpr 0
nfsolvemodpr 0
not_in_ideal 14
ok_elt 148023
p_makecoprime 62069
prV_e_muls 3073
prV_lcm_capZ 34811
pr_hnf 1161552
pr_inv 3584
pr_inv_p 24459
pr_uniformizer 17501
to_Fp_coprime 5104
to_famat 0
to_famat_shallow 934311
trivial_merge 28
twistG 26913
u_ppo 30696071
vec_mulid 7
vecdiv 903
vecinv 0
vecmul 185605
vecpow 15729
zk_pvalrem 135997

Generated by: LCOV version 1.11