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 18616-fe48336) Lines: 436 507 86.0 %
Date: 2016-02-14 Functions: 72 82 87.8 %
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 48358
RgC_Rg_div 717869
RgC_Rg_mul 2328320
RgC_add 9430508
RgC_add_i 11072267
RgC_is_ei 0
RgC_neg 56339
RgC_neg_i 615401
RgC_sub 1213902
RgC_sub_i 1242956
RgM_RgC_mul 6669052
RgM_RgC_mul_i 8046082
RgM_RgV_mul 0
RgM_Rg_add 13321
RgM_Rg_add_shallow 1491
RgM_Rg_div 104534
RgM_Rg_mul 63606
RgM_Rg_sub 0
RgM_Rg_sub_shallow 31171
RgM_add 337148
RgM_det_triangular 6538
RgM_is_ZM 1757073
RgM_isdiagonal 28
RgM_isidentity 1701
RgM_isscalar 7882
RgM_mul 1049465
RgM_multosym 0
RgM_neg 171955
RgM_powers 70
RgM_sqr 378
RgM_sub 7097
RgM_sumcol 362
RgM_transmul 0
RgM_transmultosym 490
RgM_zc_mul 76286
RgM_zc_mul_i 104668
RgM_zm_mul 7048
RgMrow_RgC_mul 0
RgMrow_RgC_mul_i 33873514
RgV_RgC_mul 321274
RgV_RgM_mul 98906
RgV_Rg_mul 3086
RgV_add 481505
RgV_dotproduct 2069746
RgV_dotproduct_i 3564323
RgV_dotsquare 868
RgV_is_ZMV 21
RgV_isin 21833
RgV_kill0 3248
RgV_neg 7330
RgV_prod 33026
RgV_sub 63612
RgV_sum 245930
RgV_sumpart 518
RgV_sumpart2 0
RgV_zc_mul 0
RgV_zc_mul_i 35786
RgV_zm_mul 8956
RgX_RgMV_eval 322
RgX_RgM_eval 161
_RgM_add 1050
_RgM_cmul 1533
_RgM_mul 217
_RgM_one 882
_RgM_red 749
_RgM_sqr 91
_RgM_zero 0
_gmul 700392
fill_scalmat 1923240
gram_matrix 119
is_modular_mul 388425
is_modular_sqr 301
isdiagonal 7
matid 1383168
scalarcol 122600
scalarcol_i 473627
scalarcol_shallow 351027
scalarmat 272896
scalarmat_s 189
scalarmat_shallow 266994

Generated by: LCOV version 1.9