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.8.0 lcov report (development 19226-b907b8d) Lines: 2255 2419 93.2 %
Date: 2016-07-29 07:10:27 Functions: 203 220 92.3 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
F2_get_col 66074
F2m_F2c_gauss 14
F2m_F2c_invimage 21
F2m_deplin 0
F2m_det 14
F2m_det_sp 28
F2m_gauss 28
F2m_gauss_pivot 25273
F2m_gauss_sp 12913
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 1449
F2m_ker_sp 130319
F2m_rank 63
F2m_suppl 7
F2v_find_nonzero 1076611
F2xqM_F2xqC_mul 7
F2xqM_det 7
F2xqM_gauss_gen 14
F2xqM_gauss_pivot 14
F2xqM_image 7
F2xqM_inv 14
F2xqM_ker 7
F2xqM_ker_i 7
F2xqM_mul 7
F2xqM_rank 7
Fl_get_col 1642643
Fl_get_col_OK 342117
Flm_Flc_gauss 21
Flm_Flc_invimage 36430
Flm_deplin 3192
Flm_det 70570
Flm_det_sp 70577
Flm_det_sp_OK 1407
Flm_gauss 42
Flm_gauss_pivot 157157
Flm_gauss_sp 250128
Flm_gauss_sp_OK 32843
Flm_image 28
Flm_indexrank 9331
Flm_intersect 0
Flm_inv 17329
Flm_inv_sp 232471
Flm_inv_upper_1 14
Flm_inv_upper_1_ind 28
Flm_invimage 0
Flm_invimage_i 14
Flm_ker 45341
Flm_ker_sp 423970
Flm_ker_sp_OK 418135
Flm_rank 14
Flm_suppl 14
FlxqM_FlxqC_gauss 0
FlxqM_FlxqC_mul 7
FlxqM_det 7
FlxqM_gauss 0
FlxqM_gauss_gen 14
FlxqM_gauss_pivot 265
FlxqM_image 7
FlxqM_inv 14
FlxqM_ker 328
FlxqM_ker_i 328
FlxqM_mul 142
FlxqM_rank 139
FpM_FpC_gauss 28
FpM_FpC_invimage 31852
FpM_deplin 49709
FpM_det 70
FpM_det_gen 49
FpM_gauss 21
FpM_gauss_gen 2807
FpM_gauss_i 33272
FpM_gauss_pivot 74316
FpM_gauss_pivot_gen 59
FpM_image 50402
FpM_indexrank 21
FpM_init 302004
FpM_intersect 47670
FpM_inv 33223
FpM_inv_upper_1 7
FpM_inv_upper_1_ind 14
FpM_invimage 0
FpM_invimage_i 7
FpM_ker 145120
FpM_ker_gen 1642
FpM_ker_i 195816
FpM_rank 7
FpM_suppl 23879
FqM_FqC_gauss 14
FqM_FqC_mul 7
FqM_deplin 0
FqM_det 7
FqM_gauss 7
FqM_gauss_gen 14
FqM_gauss_pivot 183
FqM_gauss_pivot_gen 64
FqM_image 7
FqM_inv 14
FqM_ker 1275
FqM_ker_gen 15
FqM_ker_i 1275
FqM_mul 320
FqM_rank 57
FqM_suppl 581
QM_inv 5971
RgM_Fp_init 2114
RgM_Hadamard 17101
RgM_RgC_invimage 1666
RgM_det2 2312
RgM_inv_upper 6924
RgM_inv_upper_ind 17756
RgM_invimage 35
RgM_pivots 7635
RgM_solve 321842
RgM_solve_realimag 212825
RgMs_structelim 0
RgMs_structelim_col 112
RgV_deplin 0
ZM_count_0_cols 96927
ZM_det 27895
ZM_det2 7434
ZM_det3 3003
ZM_det_i 28357
ZM_detmult 226936
ZM_gauss 2181
ZM_imagecompl 0
ZM_imagecomplspec 59214
ZM_indeximage 819
ZM_indexrank 3584
ZM_inv 99227
ZM_inv_ratlift 6643
ZM_pivots 100112
ZM_rank 34592
_Fl_add 2119030
_Fl_add_OK 73938890
_Fl_addmul 119074147
_Fl_addmul_OK 228803907
_copy 506368
_gen_addmul 89332
_gen_get_col 7710
_submul 2510726
approx_0 533270
closemodinvertible 6111
coeff_det 455
col_count_non_zero 1232
deplin 161
deplin_aux 98
det 3464
det0 1610
det2 2722
det_bareiss 294
det_develop 644
det_init_max 189
det_simple_gauss 1467
detint 42
eigen 0
fill_wcol 5320
gauss 210
gauss_get_pivot_NZ 310780
gauss_get_pivot_max 533508
gauss_get_pivot_padic 287
gauss_pivot 546
gauss_pivot_ker 6433
gaussmodulo 0
gaussmodulo2 0
gaussmoduloall 49
gen_Gauss 2849
gen_Gauss_pivot 402
gen_det 70
gen_gerepile_gauss_ker 56
gen_ker 1992
gen_matcolmul 21
gen_matcolmul_i 967
gen_matmul 327
gerepile_gauss 89
gerepile_gauss_ker 46
gerepile_mat 56
get_col 497457
get_pivot_fun 236494
get_suppl 24061
image 378
image2 7
image_from_pivot 50780
imagecompl 84
imagecompl_aux 84
imagecomplspec 0
imagecomplspec_aux 59214
indeximage0 819
indexrank 77
indexrank0 15110
indexrank_all 2097
init_gauss 230831
init_indexrank 13832
init_suppl 24061
inverseimage 1428
is_modular_solve 321842
ker 6335
ker_aux 6433
keri 2395
mateigen 63
matimage0 119
matker0 133
matsolvemod0 49
mydiv 2268
parallelogramarea 52507
perm_complete 4194
rank 154
reducemodinvertible 7
reducemodlll 0
rem_col 90853
rem_singleton 5432
row_count_non_zero 1057
split_realimag 437011
split_realimag_col 848355
suppl 70

Generated by: LCOV version 1.11