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 - RgV.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.8.0 lcov report (development 18953-2660f45) Lines: 438 508 86.2 %
Date: 2016-05-30 Functions: 73 83 88.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 265 373 71.0 %

Function Name Sort by function name Hit count Sort by hit count
RgC_RgM_mul 0
RgC_RgV_mul 7
RgC_Rg_add 49352
RgC_Rg_div 989355
RgC_Rg_mul 3423869
RgC_add 11327009
RgC_add_i 13023963
RgC_is_ei 0
RgC_neg 57187
RgC_neg_i 1722858
RgC_sub 1230786
RgC_sub_i 1259882
RgM_RgC_mul 7100861
RgM_RgC_mul_i 8496182
RgM_RgV_mul 0
RgM_Rg_add 15554
RgM_Rg_add_shallow 1666
RgM_Rg_div 104506
RgM_Rg_mul 64397
RgM_Rg_sub 0
RgM_Rg_sub_shallow 31087
RgM_add 412573
RgM_det_triangular 6678
RgM_is_ZM 2735659
RgM_isdiagonal 28
RgM_isidentity 1771
RgM_isscalar 8176
RgM_mul 1539444
RgM_multosym 0
RgM_neg 328986
RgM_powers 77
RgM_sqr 609
RgM_sub 7118
RgM_sumcol 362
RgM_transmul 0
RgM_transmultosym 490
RgM_zc_mul 76300
RgM_zc_mul_i 104724
RgM_zm_mul 7069
RgMrow_RgC_mul 259
RgMrow_RgC_mul_i 49693794
RgV_RgC_mul 320602
RgV_RgM_mul 99900
RgV_Rg_mul 3086
RgV_add 482814
RgV_dotproduct 86310
RgV_dotproduct_i 1580495
RgV_dotsquare 868
RgV_is_ZMV 21
RgV_isin 21833
RgV_kill0 3472
RgV_neg 7582
RgV_prod 33383
RgV_sub 68337
RgV_sum 247918
RgV_sumpart 518
RgV_sumpart2 0
RgV_zc_mul 0
RgV_zc_mul_i 35786
RgV_zm_mul 8956
RgX_RgMV_eval 357
RgX_RgM_eval 196
_RgM_add 1148
_RgM_cmul 1701
_RgM_mul 231
_RgM_one 1008
_RgM_red 847
_RgM_sqr 98
_RgM_sub 0
_RgM_zero 0
_gmul 702443
fill_scalmat 1669553
gram_matrix 119
is_modular_mul 389650
is_modular_sqr 539
isdiagonal 7
matid 1391813
scalarcol 122971
scalarcol_i 477183
scalarcol_shallow 354212
scalarmat 277551
scalarmat_s 189
scalarmat_shallow 7

Generated by: LCOV version 1.9