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 16962-5a32637) Lines: 402 470 85.5 %
Date: 2014-10-29 Functions: 67 77 87.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 238 340 70.0 %

Function Name Sort by function name Hit count Sort by hit count
RgC_RgM_mul 0
RgC_RgV_mul 7
RgC_Rg_add 44849
RgC_Rg_div 306763
RgC_Rg_mul 399832
RgC_add 4139683
RgC_add_i 4149455
RgC_neg 50268
RgC_neg_i 101109
RgC_sub 1064613
RgC_sub_i 1084517
RgM_RgC_mul 1652418
RgM_RgC_mul_i 3501950
RgM_RgV_mul 0
RgM_Rg_add 10017
RgM_Rg_add_shallow 32431
RgM_Rg_div 96432
RgM_Rg_mul 53977
RgM_Rg_sub 0
RgM_Rg_sub_shallow 154
RgM_add 2093
RgM_det_triangular 4459
RgM_is_ZM 22445
RgM_isdiagonal 28
RgM_isidentity 609
RgM_isscalar 9436
RgM_mul 452378
RgM_multosym 0
RgM_neg 13391
RgM_powers 7
RgM_sqr 273
RgM_sub 4590
RgM_transmul 0
RgM_transmultosym 441
RgM_zc_mul 6041
RgM_zc_mul_i 25301
RgM_zm_mul 4555
RgMrow_RgC_mul 0
RgMrow_RgC_mul_i 15617495
RgV_RgC_mul 222417
RgV_RgM_mul 25354
RgV_Rg_mul 3738
RgV_add 459017
RgV_dotproduct 1977213
RgV_dotproduct_i 2722509
RgV_dotsquare 721
RgV_is_ZMV 0
RgV_isin 21546
RgV_neg 4648
RgV_sub 57869
RgV_sum 197819
RgV_sumpart 378
RgV_sumpart2 0
RgV_zc_mul 0
RgV_zc_mul_i 21308
RgV_zm_mul 4564
RgX_RgMV_eval 35
RgX_RgM_eval 70
_RgM_add 266
_RgM_cmul 371
_RgM_mul 70
_RgM_one 238
_RgM_red 210
_RgM_sqr 28
_RgM_zero 0
fill_scalmat 1257218
gram_matrix 119
is_modular_mul 451979
is_modular_sqr 238
isdiagonal 7
matid 1105008
scalarcol 85234
scalarcol_i 455244
scalarcol_shallow 370010
scalarmat 151930
scalarmat_s 70
scalarmat_shallow 217

Generated by: LCOV version 1.9