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 - alglin1.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.10.0 lcov report (development 19834-0e97742) Lines: 2249 2431 92.5 %
Date: 2016-12-09 05:49:11 Functions: 199 218 91.3 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
F2_get_col 50915
F2m_F2c_gauss 14
F2m_F2c_invimage 21
F2m_deplin 0
F2m_det 14
F2m_det_sp 28
F2m_gauss 28
F2m_gauss_pivot 22923
F2m_gauss_sp 9205
F2m_image 7
F2m_indexrank 0
F2m_inv 35
F2m_inv_upper_1 7
F2m_inv_upper_1_ind 14
F2m_invimage 0
F2m_invimage_i 7
F2m_ker 1536
F2m_ker_sp 287711
F2m_rank 63
F2m_suppl 7
F2v_find_nonzero 1928043
F2xqM_F2xqC_mul 14
F2xqM_det 7
F2xqM_gauss_gen 14
F2xqM_gauss_pivot 14
F2xqM_image 7
F2xqM_inv 14
F2xqM_ker 21
F2xqM_ker_i 21
F2xqM_mul 7
F2xqM_rank 7
Fl_get_col 2907033
Fl_get_col_OK 390984
Flm_Flc_gauss 21
Flm_Flc_invimage 43772
Flm_deplin 0
Flm_det 69826
Flm_det_sp 69833
Flm_det_sp_OK 1407
Flm_gauss 42
Flm_gauss_pivot 179007
Flm_gauss_sp 691326
Flm_gauss_sp_OK 35188
Flm_image 49
Flm_indexrank 10003
Flm_intersect 0
Flm_inv 454644
Flm_inv_sp 670295
Flm_inv_upper_1 14
Flm_inv_upper_1_ind 28
Flm_invimage 0
Flm_invimage_i 14
Flm_ker 54435
Flm_ker_sp 476646
Flm_ker_sp_OK 468966
Flm_rank 2188
Flm_suppl 42
FlxqM_FlxqC_gauss 0
FlxqM_FlxqC_mul 7
FlxqM_det 7
FlxqM_gauss 0
FlxqM_gauss_gen 14
FlxqM_gauss_pivot 244
FlxqM_image 7
FlxqM_inv 14
FlxqM_ker 552
FlxqM_ker_i 552
FlxqM_mul 142
FlxqM_rank 139
FpM_FpC_gauss 14
FpM_FpC_invimage 39187
FpM_deplin 58013
FpM_det 70
FpM_det_gen 49
FpM_gauss 14
FpM_gauss_gen 2807
FpM_gauss_i 32938
FpM_gauss_pivot 89902
FpM_gauss_pivot_gen 59
FpM_image 61933
FpM_indexrank 21
FpM_init 349409
FpM_intersect 68586
FpM_inv 32910
FpM_inv_upper_1 7
FpM_inv_upper_1_ind 14
FpM_invimage 0
FpM_invimage_i 7
FpM_ker 168948
FpM_ker_gen 1640
FpM_ker_i 227969
FpM_rank 7
FpM_suppl 27934
FqM_FqC_gauss 0
FqM_FqC_mul 7
FqM_deplin 0
FqM_det 7
FqM_gauss 0
FqM_gauss_gen 14
FqM_gauss_pivot 162
FqM_gauss_pivot_gen 64
FqM_image 7
FqM_inv 14
FqM_ker 1254
FqM_ker_gen 15
FqM_ker_i 1254
FqM_mul 320
FqM_rank 57
FqM_suppl 574
QM_inv 6244
RgM_Fp_init 2114
RgM_Hadamard 16716
RgM_RgC_invimage 1393
RgM_det2 2479
RgM_inv_upper 5908
RgM_inv_upper_ind 16472
RgM_invimage 35
RgM_pivots 12935
RgM_solve 313832
RgM_solve_realimag 216116
RgMs_structelim 0
RgMs_structelim_col 121
RgV_deplin 0
ZM_count_0_cols 98009
ZM_det 27678
ZM_det2 7441
ZM_det3 2933
ZM_det_i 27909
ZM_detmult 7623
ZM_gauss 440525
ZM_imagecompl 0
ZM_indeximage 840
ZM_indexrank 3647
ZM_inv 102030
ZM_inv_ratlift 6706
ZM_ker_ratlift 1631
ZM_pivots 101234
ZM_rank 33843
_Fl_add 3153040
_Fl_add_OK 78758109
_Fl_addmul 142831550
_Fl_addmul_OK 250738469
_copy 28662
_gen_addmul 106608
_gen_get_col 13275
_submul 2845024
approx_0 564514
closemodinvertible 6398
coeff_det 203
col_count_non_zero 609
deplin 189
deplin_aux 126
det 11125
det0 1617
det2 3273
det_bareiss 196
det_develop 301
det_init_max 98
det_simple_gauss 9863
detint 42
eigen 0
fill_wcol 5543
gauss 231
gauss_get_pivot_NZ 257335
gauss_get_pivot_max 568658
gauss_get_pivot_padic 63091
gauss_pivot 4627
gauss_pivot_ker 6160
gaussmodulo 0
gaussmodulo2 0
gaussmoduloall 49
gen_Gauss 4088
gen_Gauss_pivot 381
gen_det 84
gen_gerepile_gauss_ker 16
gen_ker 2228
gen_matcolmul 20951
gen_matcolmul_i 38501
gen_matmul 1475
gerepile_gauss 89
gerepile_gauss_ker 6
gerepile_mat 16
get_col 449283
get_pivot_fun 244120
get_suppl 28123
image 378
image2 7
image_from_pivot 62332
imagecompl 84
imagecompl_aux 84
indeximage0 840
indexrank 4158
indexrank0 20052
indexrank_all 2223
init_gauss 664184
init_indexrank 18669
init_suppl 28123
inverseimage 1428
is_modular_solve 313832
ker 6076
ker_aux 6160
keri 246
mateigen 63
matimage0 119
matker0 147
matsolvemod0 49
mydiv 672
parallelogramarea 51464
perm_complete 4446
rank 154
reducemodinvertible 7
reducemodlll 0
rem_col 94052
rem_singleton 5664
row_count_non_zero 560
split_realimag 443593
split_realimag_col 873925
suppl 70

Generated by: LCOV version 1.11