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 19350-bd5f220) Lines: 441 529 83.4 %
Date: 2016-08-24 06:11:24 Functions: 75 87 86.2 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
RgC_RgM_mul 0
RgC_RgV_mul 7
RgC_Rg_add 80366
RgC_Rg_div 965075
RgC_Rg_mul 3815962
RgC_Rg_sub 0
RgC_add 13499337
RgC_add_i 15870888
RgC_is_ei 0
RgC_neg 59000
RgC_neg_i 2668299
RgC_sub 1291092
RgC_sub_i 1321926
RgM_RgC_mul 8577847
RgM_RgC_mul_i 10067722
RgM_RgV_mul 0
RgM_Rg_add 17437
RgM_Rg_add_shallow 1897
RgM_Rg_div 104861
RgM_Rg_mul 150864
RgM_Rg_sub 0
RgM_Rg_sub_shallow 29939
RgM_add 497560
RgM_det_triangular 6608
RgM_is_ZM 3658406
RgM_isdiagonal 28
RgM_isidentity 1771
RgM_isscalar 8232
RgM_mul 2008586
RgM_multosym 0
RgM_neg 469504
RgM_powers 154
RgM_sqr 896
RgM_sub 7570
RgM_sumcol 362
RgM_transmul 0
RgM_transmultosym 497
RgM_zc_mul 73962
RgM_zc_mul_i 104012
RgM_zm_mul 7472
RgMrow_RgC_mul 455
RgMrow_RgC_mul_i 68801385
RgMrow_zc_mul 69937
RgMrow_zc_mul_i 405439
RgV_RgC_mul 191201
RgV_RgM_mul 107718
RgV_Rg_mul 3557
RgV_add 483775
RgV_dotproduct 93331
RgV_dotproduct_i 1530278
RgV_dotsquare 868
RgV_is_ZMV 21
RgV_isin 21777
RgV_kill0 3780
RgV_neg 7838
RgV_prod 32228
RgV_sub 73974
RgV_sum 251656
RgV_sumpart 490
RgV_sumpart2 0
RgV_zc_mul 0
RgV_zc_mul_i 36765
RgV_zm_mul 9259
RgX_RgMV_eval 462
RgX_RgM_eval 357
Rg_RgC_sub 0
_RgM_add 1309
_RgM_cmul 2128
_RgM_mul 224
_RgM_one 1498
_RgM_red 1085
_RgM_sqr 105
_RgM_sub 0
_RgM_zero 0
_gmul 703318
fill_scalmat 1971131
gram_matrix 119
is_modular_mul 401159
is_modular_sqr 812
isdiagonal 7
matid 1408971
scalarcol 122929
scalarcol_i 645990
scalarcol_shallow 523061
scalarmat 561054
scalarmat_s 189
scalarmat_shallow 924

Generated by: LCOV version 1.11