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 - RgV.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.8.0 lcov report (development 17566-be4cfd0) Lines: 418 494 84.6 %
Date: 2015-02-27 Functions: 68 79 86.1 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 253 363 69.7 %

Function Name Sort by function name Hit count Sort by hit count
RgC_RgM_mul 0
RgC_RgV_mul 7
RgC_Rg_add 48231
RgC_Rg_div 317274
RgC_Rg_mul 792165
RgC_add 4916589
RgC_add_i 4944491
RgC_is_ei 0
RgC_neg 55746
RgC_neg_i 105908
RgC_sub 1160352
RgC_sub_i 1182990
RgM_RgC_mul 2373195
RgM_RgC_mul_i 4430538
RgM_RgV_mul 0
RgM_Rg_add 13285
RgM_Rg_add_shallow 33979
RgM_Rg_div 102059
RgM_Rg_mul 67301
RgM_Rg_sub 0
RgM_Rg_sub_shallow 154
RgM_add 4480
RgM_det_triangular 5985
RgM_is_ZM 25241
RgM_isdiagonal 28
RgM_isidentity 1029
RgM_isscalar 17220
RgM_mul 486434
RgM_multosym 0
RgM_neg 13251
RgM_powers 28
RgM_sqr 343
RgM_sub 5320
RgM_sumcol 362
RgM_transmul 0
RgM_transmultosym 441
RgM_zc_mul 76258
RgM_zc_mul_i 98224
RgM_zm_mul 5271
RgMrow_RgC_mul 0
RgMrow_RgC_mul_i 21169369
RgV_RgC_mul 277641
RgV_RgM_mul 28587
RgV_Rg_mul 4146
RgV_add 458782
RgV_dotproduct 2069935
RgV_dotproduct_i 2886253
RgV_dotsquare 833
RgV_is_ZMV 0
RgV_isin 21938
RgV_neg 5167
RgV_sub 58758
RgV_sum 207230
RgV_sumpart 476
RgV_sumpart2 0
RgV_zc_mul 0
RgV_zc_mul_i 21350
RgV_zm_mul 4578
RgX_RgMV_eval 133
RgX_RgM_eval 105
_RgM_add 763
_RgM_cmul 1001
_RgM_mul 203
_RgM_one 525
_RgM_red 483
_RgM_sqr 70
_RgM_zero 0
fill_scalmat 1369256
gram_matrix 119
is_modular_mul 485944
is_modular_sqr 308
isdiagonal 7
matid 1192338
scalarcol 118750
scalarcol_i 438874
scalarcol_shallow 320124
scalarmat 176519
scalarmat_s 189
scalarmat_shallow 217

Generated by: LCOV version 1.9