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 19091-23c3a5b) Lines: 2262 2418 93.5 %
Date: 2016-07-02 Functions: 203 220 92.3 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 1506 1869 80.6 %

Function Name Sort by function name Hit count Sort by hit count
F2_get_col 66046
F2m_F2c_gauss 14
F2m_F2c_invimage 21
F2m_deplin 0
F2m_det 14
F2m_det_sp 28
F2m_gauss 28
F2m_gauss_pivot 25231
F2m_gauss_sp 12899
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 128548
F2m_rank 63
F2m_suppl 7
F2v_find_nonzero 1071284
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 1642223
Fl_get_col_OK 342117
Flm_Flc_gauss 21
Flm_Flc_invimage 36402
Flm_deplin 3192
Flm_det 70542
Flm_det_sp 70549
Flm_det_sp_OK 1407
Flm_gauss 42
Flm_gauss_pivot 156625
Flm_gauss_sp 250030
Flm_gauss_sp_OK 32843
Flm_image 28
Flm_indexrank 9331
Flm_intersect 0
Flm_inv 17329
Flm_inv_sp 232373
Flm_inv_upper_1 14
Flm_inv_upper_1_ind 28
Flm_invimage 0
Flm_invimage_i 14
Flm_ker 45313
Flm_ker_sp 382194
Flm_ker_sp_OK 376359
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 31824
FpM_deplin 49667
FpM_det 70
FpM_det_gen 49
FpM_gauss 21
FpM_gauss_gen 2807
FpM_gauss_i 33258
FpM_gauss_pivot 74274
FpM_gauss_pivot_gen 59
FpM_image 50374
FpM_indexrank 21
FpM_init 301878
FpM_intersect 47670
FpM_inv 33209
FpM_inv_upper_1 7
FpM_inv_upper_1_ind 14
FpM_invimage 0
FpM_invimage_i 7
FpM_ker 145092
FpM_ker_gen 1642
FpM_ker_i 195746
FpM_rank 7
FpM_suppl 23865
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 5950
RgM_Fp_init 2114
RgM_Hadamard 17073
RgM_RgC_invimage 1666
RgM_det2 2305
RgM_inv_upper 6917
RgM_inv_upper_ind 17644
RgM_invimage 35
RgM_pivots 7607
RgM_solve 321322
RgM_solve_realimag 212783
RgMs_structelim 0
RgMs_structelim_col 112
RgV_deplin 0
ZM_count_0_cols 96395
ZM_det 27895
ZM_det2 7434
ZM_det3 3003
ZM_det_i 28329
ZM_detmult 226726
ZM_gauss 2181
ZM_imagecompl 0
ZM_imagecomplspec 58724
ZM_indeximage 819
ZM_indexrank 3584
ZM_inv 99178
ZM_inv_ratlift 6643
ZM_pivots 99580
ZM_rank 34550
_Fl_add 2112870
_Fl_add_OK 73937301
_Fl_addmul 119064837
_Fl_addmul_OK 228735783
_copy 506368
_gen_addmul 89332
_gen_get_col 7710
_submul 2510551
approx_0 533214
closemodinvertible 6111
coeff_det 455
col_count_non_zero 1232
deplin 161
deplin_aux 98
det 3436
det0 1610
det2 2708
det_bareiss 294
det_develop 644
det_init_max 189
det_simple_gauss 1460
detint 42
eigen 0
fill_wcol 5320
gauss 210
gauss_get_pivot_NZ 310339
gauss_get_pivot_max 533452
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 496981
get_pivot_fun 236053
get_suppl 24047
image 378
image2 7
image_from_pivot 50752
imagecompl 84
imagecompl_aux 84
imagecomplspec 0
imagecomplspec_aux 58724
indeximage0 819
indexrank 77
indexrank0 15110
indexrank_all 2097
init_gauss 230404
init_indexrank 13832
init_suppl 24047
inverseimage 1428
is_modular_solve 321322
ker 6335
ker_aux 6433
keri 2395
mateigen 63
matimage0 119
matker0 133
matsolvemod0 49
mydiv 2268
parallelogramarea 52451
perm_complete 4194
rank 154
reducemodinvertible 7
reducemodlll 0
rem_col 90853
rem_singleton 5432
row_count_non_zero 1057
split_realimag 436927
split_realimag_col 848215
suppl 70

Generated by: LCOV version 1.9