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-bordeaux1.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 16937-4bd9b4e) Lines: 2186 2336 93.6 %
Date: 2014-10-24 Functions: 201 216 93.1 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 1430 1787 80.0 %

Function Name Sort by function name Hit count Sort by hit count
F2m_F2c_gauss 7
F2m_F2c_invimage 7
F2m_deplin 0
F2m_det 14
F2m_det_sp 14
F2m_gauss 14
F2m_gauss_pivot 20167
F2m_gauss_sp 9114
F2m_image 7
F2m_indexrank 0
F2m_inv 28
F2m_inv_upper_1 7
F2m_inv_upper_1_ind 14
F2m_invimage 0
F2m_invimage_i 7
F2m_ker 1281
F2m_ker_sp 110169
F2m_rank 63
F2m_suppl 7
F2v_find_nonzero 1035433
F2xqM_F2xqC_mul 7
F2xqM_det 7
F2xqM_gauss_gen 7
F2xqM_gauss_pivot 14
F2xqM_image 7
F2xqM_inv 7
F2xqM_ker 7
F2xqM_ker_i 7
F2xqM_mul 7
F2xqM_rank 7
Fl_get_col 12691
Fl_get_col_OK 2055685
Flm_Flc_gauss 14
Flm_Flc_invimage 30695
Flm_deplin 2996
Flm_det 232188
Flm_det_sp 232188
Flm_det_sp_OK 232174
Flm_gauss 28
Flm_gauss_pivot 81678
Flm_gauss_sp 251509
Flm_image 28
Flm_indexrank 4613
Flm_inv 10450
Flm_inv_sp 239735
Flm_inv_upper_1 14
Flm_inv_upper_1_ind 28
Flm_invimage 0
Flm_invimage_i 14
Flm_ker 34741
Flm_ker_sp 290247
Flm_rank 14
Flm_suppl 14
FlxqM_FlxqC_gauss 0
FlxqM_FlxqC_mul 7
FlxqM_det 7
FlxqM_gauss 0
FlxqM_gauss_gen 7
FlxqM_gauss_pivot 133
FlxqM_image 7
FlxqM_inv 7
FlxqM_ker 111
FlxqM_ker_i 111
FlxqM_mul 7
FlxqM_rank 91
FpM_FpC_gauss 28
FpM_FpC_invimage 28280
FpM_deplin 43197
FpM_det 49
FpM_det_gen 49
FpM_gauss 14
FpM_gauss_gen 2310
FpM_gauss_i 23128
FpM_gauss_pivot 54418
FpM_gauss_pivot_gen 2214
FpM_image 33684
FpM_indexrank 21
FpM_init 243782
FpM_intersect 42105
FpM_inv 23086
FpM_inv_upper_1 7
FpM_inv_upper_1_ind 14
FpM_invimage 0
FpM_invimage_i 7
FpM_ker 122759
FpM_ker_gen 1632
FpM_ker_i 166243
FpM_rank 2723
FpM_suppl 17983
FqM_FqC_gauss 14
FqM_FqC_mul 7
FqM_deplin 0
FqM_det 7
FqM_gauss 7
FqM_gauss_gen 7
FqM_gauss_pivot 98
FqM_gauss_pivot_gen 63
FqM_image 7
FqM_inv 7
FqM_ker 372
FqM_ker_gen 8
FqM_ker_i 372
FqM_mul 112
FqM_rank 56
FqM_suppl 161
QM_inv 2324
RgM_Fp_init 2058
RgM_Hadamard 16632
RgM_RgC_invimage 3843
RgM_det2 80859
RgM_inv_upper 6508
RgM_inv_upper_ind 16431
RgM_invimage 35
RgM_pivots 4813
RgM_solve 235167
RgM_solve_realimag 165331
RgMs_structelim 49
RgV_deplin 0
ZM_count_0_cols 42600
ZM_det 28000
ZM_det2 7595
ZM_det3 2933
ZM_det_i 28007
ZM_detmult 194466
ZM_gauss 1721
ZM_imagecompl 0
ZM_imagecomplspec 15383
ZM_indeximage 42
ZM_indexrank 371
ZM_inv 89977
ZM_pivots 43258
ZM_rank 25965
_Fl_add 474
_Fl_add_OK 35458166
_Fl_addmul 769509
_Fl_addmul_OK 218968214
_Fl_sub 244254
_Fl_submul 172879
_copy 3154997
_gen_addmul 78365
_gen_get_col 6258
_submul 1959632
approx_0 377894
closemodinvertible 5201
coeff_det 168
col_count_non_zero 406
deplin 161
deplin_aux 98
det 81435
det0 1582
det2 2328
det_bareiss 70
det_develop 196
det_init_max 28
det_simple_gauss 1196
detint 14
eigen 0
fill_wcol 2975
gauss 175
gauss_get_pivot_NZ 260610
gauss_get_pivot_max 377894
gauss_get_pivot_padic 287
gauss_pivot 259
gauss_pivot_ker 8120
gaussmodulo 0
gaussmodulo2 0
gaussmoduloall 49
gen_Gauss 2331
gen_Gauss_pivot 2424
gen_det 70
gen_gerepile_gauss_ker 86
gen_ker 1758
gen_matcolmul 21
gen_matcolmul_i 350
gen_matmul 126
gerepile_gauss 929
gerepile_gauss_ker 76
gerepile_mat 86
get_col 391230
get_pivot_fun 164679
get_suppl 18060
image 112
image2 7
image_from_pivot 33796
imagecompl 84
imagecompl_aux 84
imagecomplspec 0
imagecomplspec_aux 15383
indeximage0 42
indexrank 77
indexrank0 6691
indexrank_all 1609
init_gauss 157364
init_indexrank 5124
init_suppl 18060
inverseimage 3878
is_modular_solve 235167
ker 8022
ker_aux 8120
keri 708
mateigen 63
matimage0 119
matker0 133
matsolvemod0 49
mydiv 1274
parallelogramarea 52185
perm_complete 3218
rank 154
reducemodinvertible 7
reducemodlll 0
rem_col 66906
rem_singleton 3024
row_count_non_zero 378
split_realimag 341288
split_realimag_col 642096
suppl 49

Generated by: LCOV version 1.9