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 17403-69c3b04) Lines: 416 492 84.6 %
Date: 2015-01-28 Functions: 68 79 86.1 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 250 361 69.3 %

Function Name Sort by function name Hit count Sort by hit count
RgC_RgM_mul 0
RgC_RgV_mul 7
RgC_Rg_add 48141
RgC_Rg_div 316762
RgC_Rg_mul 446572
RgC_add 4563388
RgC_add_i 4584514
RgC_is_ei 0
RgC_neg 55644
RgC_neg_i 106513
RgC_sub 1159701
RgC_sub_i 1182311
RgM_RgC_mul 2032130
RgM_RgC_mul_i 4374877
RgM_RgV_mul 0
RgM_Rg_add 13271
RgM_Rg_add_shallow 33915
RgM_Rg_div 102588
RgM_Rg_mul 66044
RgM_Rg_sub 0
RgM_Rg_sub_shallow 154
RgM_add 3577
RgM_det_triangular 5628
RgM_is_ZM 24968
RgM_isdiagonal 28
RgM_isidentity 1029
RgM_isscalar 16331
RgM_mul 502471
RgM_multosym 0
RgM_neg 13398
RgM_powers 28
RgM_sqr 287
RgM_sub 5306
RgM_sumcol 362
RgM_transmul 0
RgM_transmultosym 441
RgM_zc_mul 76342
RgM_zc_mul_i 98308
RgM_zm_mul 5271
RgMrow_RgC_mul 0
RgMrow_RgC_mul_i 24777985
RgV_RgC_mul 266083
RgV_RgM_mul 28153
RgV_Rg_mul 4146
RgV_add 458782
RgV_dotproduct 2068122
RgV_dotproduct_i 2872315
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 77
_RgM_add 483
_RgM_cmul 693
_RgM_mul 91
_RgM_one 385
_RgM_red 343
_RgM_sqr 42
_RgM_zero 0
fill_scalmat 1360717
gram_matrix 119
is_modular_mul 501981
is_modular_sqr 252
isdiagonal 7
matid 1185093
scalarcol 116699
scalarcol_i 436024
scalarcol_shallow 319325
scalarmat 175225
scalarmat_s 189
scalarmat_shallow 217

Generated by: LCOV version 1.9