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 18946-c0ba5ba) Lines: 2263 2419 93.6 %
Date: 2016-05-25 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 65738
F2m_F2c_gauss 14
F2m_F2c_invimage 21
F2m_deplin 0
F2m_det 14
F2m_det_sp 28
F2m_gauss 28
F2m_gauss_pivot 25119
F2m_gauss_sp 12850
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 128268
F2m_rank 63
F2m_suppl 7
F2v_find_nonzero 1073927
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 11915
Fl_get_col_OK 2556919
Flm_Flc_gauss 21
Flm_Flc_invimage 36346
Flm_deplin 3192
Flm_det 234166
Flm_det_sp 234173
Flm_det_sp_OK 234159
Flm_gauss 42
Flm_gauss_pivot 151217
Flm_gauss_sp 306494
Flm_gauss_sp_OK 304470
Flm_image 28
Flm_indexrank 9331
Flm_intersect 0
Flm_inv 17210
Flm_inv_sp 288844
Flm_inv_upper_1 14
Flm_inv_upper_1_ind 28
Flm_invimage 0
Flm_invimage_i 14
Flm_ker 45264
Flm_ker_sp 382138
Flm_ker_sp_OK 376303
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 31768
FpM_deplin 49583
FpM_det 70
FpM_det_gen 49
FpM_gauss 21
FpM_gauss_gen 2807
FpM_gauss_i 33202
FpM_gauss_pivot 74148
FpM_gauss_pivot_gen 59
FpM_image 50304
FpM_indexrank 21
FpM_init 301486
FpM_intersect 47628
FpM_inv 33153
FpM_inv_upper_1 7
FpM_inv_upper_1_ind 14
FpM_invimage 0
FpM_invimage_i 7
FpM_ker 144966
FpM_ker_gen 1642
FpM_ker_i 195536
FpM_rank 7
FpM_suppl 23809
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 110
FqM_rank 57
FqM_suppl 581
QM_inv 5936
RgM_Fp_init 2114
RgM_Hadamard 17073
RgM_RgC_invimage 1666
RgM_det2 2298
RgM_inv_upper 6910
RgM_inv_upper_ind 17609
RgM_invimage 35
RgM_pivots 7600
RgM_solve 317948
RgM_solve_realimag 212776
RgMs_structelim 0
RgMs_structelim_col 112
RgV_deplin 0
ZM_count_0_cols 91071
ZM_det 27895
ZM_det2 7434
ZM_det3 3003
ZM_det_i 28329
ZM_detmult 226579
ZM_gauss 2062
ZM_imagecompl 0
ZM_imagecomplspec 55171
ZM_indeximage 336
ZM_indexrank 2247
ZM_inv 99143
ZM_inv_ratlift 4130
ZM_pivots 94186
ZM_rank 34529
_Fl_add 64680
_Fl_add_OK 78196206
_Fl_addmul 16508719
_Fl_addmul_OK 563457384
_copy 626835
_gen_addmul 89332
_gen_get_col 7710
_submul 2510117
approx_0 533179
closemodinvertible 6097
coeff_det 455
col_count_non_zero 1232
deplin 161
deplin_aux 98
det 3436
det0 1610
det2 2701
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 307214
gauss_get_pivot_max 533417
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 63
gen_ker 1992
gen_matcolmul 21
gen_matcolmul_i 547
gen_matmul 117
gerepile_gauss 89
gerepile_gauss_ker 53
gerepile_mat 63
get_col 493849
get_pivot_fun 233035
get_suppl 23991
image 378
image2 7
image_from_pivot 50682
imagecompl 84
imagecompl_aux 84
imagecomplspec 0
imagecomplspec_aux 55171
indeximage0 336
indexrank 77
indexrank0 13654
indexrank_all 1978
init_gauss 227260
init_indexrank 12012
init_suppl 23991
inverseimage 1428
is_modular_solve 317948
ker 6335
ker_aux 6433
keri 1604
mateigen 63
matimage0 119
matker0 133
matsolvemod0 49
mydiv 2268
parallelogramarea 52451
perm_complete 3956
rank 154
reducemodinvertible 7
reducemodlll 0
rem_col 90853
rem_singleton 5432
row_count_non_zero 1057
split_realimag 436871
split_realimag_col 848124
suppl 70

Generated by: LCOV version 1.9