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 19374-ac31b96) Lines: 2244 2420 92.7 %
Date: 2016-08-30 06:11:37 Functions: 201 220 91.4 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
F2_get_col 66306
F2m_F2c_gauss 14
F2m_F2c_invimage 21
F2m_deplin 0
F2m_det 14
F2m_det_sp 28
F2m_gauss 28
F2m_gauss_pivot 25226
F2m_gauss_sp 12907
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 124898
F2m_rank 63
F2m_suppl 7
F2v_find_nonzero 1049527
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 2911599
Fl_get_col_OK 332849
Flm_Flc_gauss 21
Flm_Flc_invimage 35717
Flm_deplin 3192
Flm_det 69777
Flm_det_sp 69784
Flm_det_sp_OK 1407
Flm_gauss 42
Flm_gauss_pivot 156802
Flm_gauss_sp 681859
Flm_gauss_sp_OK 32332
Flm_image 28
Flm_indexrank 9373
Flm_intersect 0
Flm_inv 449493
Flm_inv_sp 664755
Flm_inv_upper_1 14
Flm_inv_upper_1_ind 28
Flm_invimage 0
Flm_invimage_i 14
Flm_ker 44712
Flm_ker_sp 421497
Flm_ker_sp_OK 415663
Flm_rank 2185
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 14
FpM_FpC_invimage 31139
FpM_deplin 48401
FpM_det 70
FpM_det_gen 49
FpM_gauss 14
FpM_gauss_gen 2807
FpM_gauss_i 32713
FpM_gauss_pivot 72540
FpM_gauss_pivot_gen 59
FpM_image 49164
FpM_indexrank 21
FpM_init 295521
FpM_intersect 45486
FpM_inv 32685
FpM_inv_upper_1 7
FpM_inv_upper_1_ind 14
FpM_invimage 0
FpM_invimage_i 7
FpM_ker 142294
FpM_ker_gen 1642
FpM_ker_i 191668
FpM_rank 7
FpM_suppl 23341
FqM_FqC_gauss 0
FqM_FqC_mul 7
FqM_deplin 0
FqM_det 7
FqM_gauss 0
FqM_gauss_gen 14
FqM_gauss_pivot 183
FqM_gauss_pivot_gen 64
FqM_image 7
FqM_inv 14
FqM_ker 1261
FqM_ker_gen 15
FqM_ker_i 1261
FqM_mul 320
FqM_rank 57
FqM_suppl 581
QM_inv 5985
RgM_Fp_init 2114
RgM_Hadamard 16667
RgM_RgC_invimage 1666
RgM_det2 1717
RgM_inv_upper 6924
RgM_inv_upper_ind 17756
RgM_invimage 35
RgM_pivots 7912
RgM_solve 322794
RgM_solve_realimag 214236
RgMs_structelim 0
RgMs_structelim_col 112
RgV_deplin 0
ZM_count_0_cols 96060
ZM_det 27664
ZM_det2 7434
ZM_det3 2898
ZM_det_i 27818
ZM_detmult 7532
ZM_gauss 434303
ZM_imagecompl 0
ZM_imagecomplspec 59617
ZM_indeximage 819
ZM_indexrank 3584
ZM_inv 99283
ZM_inv_ratlift 6643
ZM_pivots 99252
ZM_rank 33329
_Fl_add 2419722
_Fl_add_OK 74457809
_Fl_addmul 134209576
_Fl_addmul_OK 230113876
_copy 506368
_gen_addmul 107336
_gen_get_col 13261
_submul 2638387
approx_0 544138
closemodinvertible 6647
coeff_det 203
col_count_non_zero 609
deplin 161
deplin_aux 98
det 2393
det0 1610
det2 2882
det_bareiss 196
det_develop 301
det_init_max 98
det_simple_gauss 1586
detint 42
eigen 0
fill_wcol 5320
gauss 231
gauss_get_pivot_NZ 305947
gauss_get_pivot_max 544376
gauss_get_pivot_padic 287
gauss_pivot 546
gauss_pivot_ker 6433
gaussmodulo 0
gaussmodulo2 0
gaussmoduloall 49
gen_Gauss 4095
gen_Gauss_pivot 402
gen_det 84
gen_gerepile_gauss_ker 56
gen_ker 2006
gen_matcolmul 34846
gen_matcolmul_i 38368
gen_matmul 908
gerepile_gauss 89
gerepile_gauss_ker 46
gerepile_mat 56
get_col 494766
get_pivot_fun 237225
get_suppl 23523
image 378
image2 7
image_from_pivot 49542
imagecompl 84
imagecompl_aux 84
imagecomplspec 0
imagecomplspec_aux 59617
indeximage0 819
indexrank 77
indexrank0 15152
indexrank_all 2097
init_gauss 663656
init_indexrank 13874
init_suppl 23523
inverseimage 1428
is_modular_solve 322794
ker 6349
ker_aux 6433
keri 2395
mateigen 63
matimage0 119
matker0 147
matsolvemod0 49
mydiv 672
parallelogramarea 51366
perm_complete 4194
rank 154
reducemodinvertible 7
reducemodlll 0
rem_col 90853
rem_singleton 5432
row_count_non_zero 560
split_realimag 439833
split_realimag_col 859449
suppl 70

Generated by: LCOV version 1.11