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 19191-d7615ef) Lines: 441 529 83.4 %
Date: 2016-07-23 07:10:28 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 51606
RgC_Rg_div 1064049
RgC_Rg_mul 3716119
RgC_Rg_sub 0
RgC_add 13471705
RgC_add_i 15843256
RgC_is_ei 0
RgC_neg 57529
RgC_neg_i 2666562
RgC_sub 1247033
RgC_sub_i 1276199
RgM_RgC_mul 8715873
RgM_RgC_mul_i 10115977
RgM_RgV_mul 0
RgM_Rg_add 17346
RgM_Rg_add_shallow 1897
RgM_Rg_div 105864
RgM_Rg_mul 67855
RgM_Rg_sub 0
RgM_Rg_sub_shallow 31143
RgM_add 497560
RgM_det_triangular 6678
RgM_is_ZM 3652436
RgM_isdiagonal 28
RgM_isidentity 1771
RgM_isscalar 8232
RgM_mul 1998218
RgM_multosym 0
RgM_neg 469490
RgM_powers 154
RgM_sqr 896
RgM_sub 7160
RgM_sumcol 362
RgM_transmul 0
RgM_transmultosym 497
RgM_zc_mul 73962
RgM_zc_mul_i 102344
RgM_zm_mul 7062
RgMrow_RgC_mul 455
RgMrow_RgC_mul_i 68370624
RgMrow_zc_mul 69937
RgMrow_zc_mul_i 398137
RgV_RgC_mul 321917
RgV_RgM_mul 107655
RgV_Rg_mul 3086
RgV_add 482996
RgV_dotproduct 93261
RgV_dotproduct_i 1660777
RgV_dotsquare 868
RgV_is_ZMV 21
RgV_isin 21777
RgV_kill0 3759
RgV_neg 7603
RgV_prod 33362
RgV_sub 73974
RgV_sum 247890
RgV_sumpart 518
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 702415
fill_scalmat 1764684
gram_matrix 119
is_modular_mul 390981
is_modular_sqr 812
isdiagonal 7
matid 1404421
scalarcol 122978
scalarcol_i 604695
scalarcol_shallow 481717
scalarmat 360074
scalarmat_s 189
scalarmat_shallow 7

Generated by: LCOV version 1.11