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 17842-03c132c) Lines: 425 501 84.8 %
Date: 2015-05-24 Functions: 70 81 86.4 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 259 369 70.2 %

Function Name Sort by function name Hit count Sort by hit count
RgC_RgM_mul 0
RgC_RgV_mul 7
RgC_Rg_add 48232
RgC_Rg_div 317273
RgC_Rg_mul 792169
RgC_add 4917104
RgC_add_i 4945006
RgC_is_ei 0
RgC_neg 55736
RgC_neg_i 105898
RgC_sub 1160352
RgC_sub_i 1182990
RgM_RgC_mul 2373106
RgM_RgC_mul_i 3748316
RgM_RgV_mul 0
RgM_Rg_add 13285
RgM_Rg_add_shallow 4221
RgM_Rg_div 102091
RgM_Rg_mul 67297
RgM_Rg_sub 0
RgM_Rg_sub_shallow 29904
RgM_add 4480
RgM_det_triangular 5985
RgM_is_ZM 638300
RgM_isdiagonal 28
RgM_isidentity 1029
RgM_isscalar 17262
RgM_mul 486462
RgM_multosym 0
RgM_neg 13251
RgM_powers 28
RgM_sqr 343
RgM_sub 5320
RgM_sumcol 362
RgM_transmul 0
RgM_transmultosym 448
RgM_zc_mul 76258
RgM_zc_mul_i 98224
RgM_zm_mul 5271
RgMrow_RgC_mul 0
RgMrow_RgC_mul_i 15794422
RgV_RgC_mul 277701
RgV_RgM_mul 28629
RgV_Rg_mul 4146
RgV_add 466101
RgV_dotproduct 2070341
RgV_dotproduct_i 2887468
RgV_dotsquare 833
RgV_is_ZMV 0
RgV_isin 21938
RgV_neg 5664
RgV_prod 30828
RgV_sub 59199
RgV_sum 207230
RgV_sumpart 476
RgV_sumpart2 0
RgV_zc_mul 0
RgV_zc_mul_i 21378
RgV_zm_mul 4585
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
_gmul 694246
fill_scalmat 1369396
gram_matrix 119
is_modular_mul 379290
is_modular_sqr 273
isdiagonal 7
matid 1192477
scalarcol 118764
scalarcol_i 438915
scalarcol_shallow 320151
scalarmat 176520
scalarmat_s 189
scalarmat_shallow 217

Generated by: LCOV version 1.9