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 16912-212c0f0) Lines: 402 470 85.5 %
Date: 2014-10-20 Functions: 67 77 87.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 237 340 69.7 %

Function Name Sort by function name Hit count Sort by hit count
RgC_RgM_mul 0
RgC_RgV_mul 7
RgC_Rg_add 44793
RgC_Rg_div 301600
RgC_Rg_mul 395357
RgC_add 4116801
RgC_add_i 4122443
RgC_neg 50240
RgC_neg_i 99541
RgC_sub 1064236
RgC_sub_i 1084140
RgM_RgC_mul 1627905
RgM_RgC_mul_i 3475642
RgM_RgV_mul 0
RgM_Rg_add 9990
RgM_Rg_add_shallow 32421
RgM_Rg_div 96439
RgM_Rg_mul 52270
RgM_Rg_sub 0
RgM_Rg_sub_shallow 154
RgM_add 960
RgM_det_triangular 4494
RgM_is_ZM 22466
RgM_isdiagonal 28
RgM_isidentity 609
RgM_isscalar 9359
RgM_mul 451310
RgM_multosym 0
RgM_neg 12971
RgM_powers 7
RgM_sqr 266
RgM_sub 4590
RgM_transmul 0
RgM_transmultosym 627
RgM_zc_mul 6041
RgM_zc_mul_i 25301
RgM_zm_mul 4555
RgMrow_RgC_mul 0
RgMrow_RgC_mul_i 15553450
RgV_RgC_mul 222147
RgV_RgM_mul 25354
RgV_Rg_mul 3418
RgV_add 449726
RgV_dotproduct 60450
RgV_dotproduct_i 806592
RgV_dotsquare 721
RgV_is_ZMV 0
RgV_isin 21546
RgV_neg 4648
RgV_sub 57869
RgV_sum 194551
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 49
_RgM_add 196
_RgM_cmul 280
_RgM_mul 42
_RgM_one 168
_RgM_red 140
_RgM_sqr 21
_RgM_zero 0
fill_scalmat 1247202
gram_matrix 119
is_modular_mul 450932
is_modular_sqr 231
isdiagonal 7
matid 1098132
scalarcol 87314
scalarcol_i 457524
scalarcol_shallow 370210
scalarmat 148902
scalarmat_s 70
scalarmat_shallow 105

Generated by: LCOV version 1.9