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 21913-852521c) Lines: 1393 1546 90.1 %
Date: 2018-02-19 06:15:51 Functions: 140 154 90.9 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
ZV_cba 0
ZV_cba_extend 0
Z_dcba_rec 0
Z_ppgle 0
famat_Z_gcd 0
famat_to_nf 0
idealHNF_Z_factor 0
idealapprfact 0
nfdivmodpr 0
nfkermodpr 0
nfpowmodpr 0
nfsolvemodpr 0
to_famat 0
vecinv 0
err_divexact 7
famat_div_shallow 7
hnf_QC_QC 7
idealmin 7
nfmulmodpr 7
vec_mulid 7
idealappr 14
idealappr0 14
not_in_ideal 14
chk_vdir 21
hnf_Q_Q 21
hnf_Z_QC 21
idealintersect 21
mat_ideal_two_elt2 21
hnf_Q_QC 28
hnf_Z_ZC 28
in_ideal 28
trivial_merge 28
idealaddmultoone 35
idealdiv0 42
idealpow0 42
idealtwoelt2 42
idealispower 49
idealmul0 56
idealredmodpower 63
idealtwoelt0 63
idealaddtoone0 70
idealcoprime 70
idealsqrtn_int 77
isideal 91
gpidealfactor 98
idealaddtoone 98
idealredmodpower_i 112
idealhnf0 119
idealprodprime 126
nf_coprime_part 140
famat_to_Fp_coprime 620
idealdivexact 889
vecdiv 903
ext_pow 1174
famat_pow 1174
idealprod 1484
famat_pows_shallow 2799
prV_e_muls 3101
Q_nffactor 3129
idealhnf 3150
pr_inv 3569
nf_to_Fp_coprime 4032
famat_mulpows_shallow 4466
to_Fp_coprime 4742
make_integral 5614
idealnorm 6552
gpidealval 6573
factorbackprime 7210
ext_inv 10897
famat_to_nf_moddivisor 10983
famat_inv 11037
idealaddtoone_i 12355
idealcoprimefact 12551
famatsmall_reduce 12733
idealdivpowprime 13489
vecpow 15729
idealmulred 16439
famat_reduce 17983
pr_uniformizer 18080
idealapprfact_i 20698
idealdiv 21049
idealpows 21308
addmul_mat 23749
pr_inv_p 24480
_mul 25518
nf_get_Gtwist1 26829
twistG 26871
famat_inv_shallow 27020
prV_lcm_capZ 35097
idealHNF_factor 37176
idealHNF_Z_factor_i 37232
idealHNF_factor_i 37232
idealnumden 37498
idealtwoelt 39608
RM_round_maxrank 39891
idealfactor 40249
idealfactor_limit 40347
_idealmulred 41957
idealsqrprime 44059
famat_sqr 49528
addmul_col 53422
ZM_famat_limit 55923
idealHNF_inv 56091
append 57859
idealpowred 58434
famat_pow_shallow 59108
famat_mulpow_shallow 59234
ext_sqr 60105
_idealsqrred 60189
_sqr 60189
idealadd 60340
idealsqr 60910
idealsqr_aux 60910
p_makecoprime 62069
idealmulpowprime 67676
get_random_a 78144
famat_add 84097
idealpowprime 89109
famat_mul_shallow 93235
idealinv 96290
famat_mul 107433
idealhnf_two 108017
idealaddtoone_raw 108262
famat_makecoprime 111633
_idealaddtoone 120617
zk_pvalrem 135815
ext_mul 142139
ok_elt 149671
idealred0 161924
nf_get_Gtwist 161931
idealpow 178655
idealpow_aux 178655
idealHNF_inv_Z 189622
mat_ideal_two_elt 195160
vecmul 196000
idealmulelt 197411
idealHNF_norm_pval 197930
idealHNF_val 215414
nf_remove_denom_p 263418
idealhnf_principal 269106
idealHNF_mul 308846
idealhnf_shallow 321788
Z_cba 344617
Z_ppo 356460
Z_ppio 452865
idealval 484463
idealHNF_mul_two 628734
idealmul 642474
idealmul_aux 642474
to_famat_shallow 879419
pr_hnf 1160375
Z_cba_rec 3068653
idealtyp 3117318
u_ppo 30698507

Generated by: LCOV version 1.11