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 17097-9391e68) Lines: 402 470 85.5 %
Date: 2014-11-21 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 5
RgC_Rg_add 32195
RgC_Rg_div 220322
RgC_Rg_mul 296517
RgC_add 3024178
RgC_add_i 3031158
RgC_neg 36116
RgC_neg_i 72431
RgC_sub 764508
RgC_sub_i 778784
RgM_RgC_mul 1187897
RgM_RgC_mul_i 2517313
RgM_RgV_mul 0
RgM_Rg_add 7227
RgM_Rg_add_shallow 23630
RgM_Rg_div 69735
RgM_Rg_mul 38940
RgM_Rg_sub 0
RgM_Rg_sub_shallow 110
RgM_add 1495
RgM_det_triangular 3185
RgM_is_ZM 16131
RgM_isdiagonal 20
RgM_isidentity 435
RgM_isscalar 7655
RgM_mul 324896
RgM_multosym 0
RgM_neg 9565
RgM_powers 5
RgM_sqr 195
RgM_sub 3308
RgM_transmul 0
RgM_transmultosym 315
RgM_zc_mul 29310
RgM_zc_mul_i 43126
RgM_zm_mul 3283
RgMrow_RgC_mul 0
RgMrow_RgC_mul_i 11265863
RgV_RgC_mul 160225
RgV_RgM_mul 18985
RgV_Rg_mul 2680
RgV_add 328515
RgV_dotproduct 1416280
RgV_dotproduct_i 1956775
RgV_dotsquare 515
RgV_is_ZMV 0
RgV_isin 15510
RgV_neg 3455
RgV_sub 41400
RgV_sum 142925
RgV_sumpart 270
RgV_sumpart2 0
RgV_zc_mul 0
RgV_zc_mul_i 15250
RgV_zm_mul 3270
RgX_RgMV_eval 25
RgX_RgM_eval 50
_RgM_add 190
_RgM_cmul 265
_RgM_mul 50
_RgM_one 170
_RgM_red 150
_RgM_sqr 20
_RgM_zero 0
fill_scalmat 904757
gram_matrix 85
is_modular_mul 324576
is_modular_sqr 170
isdiagonal 5
matid 795499
scalarcol 76267
scalarcol_i 295446
scalarcol_shallow 219179
scalarmat 108973
scalarmat_s 135
scalarmat_shallow 155

Generated by: LCOV version 1.9