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 17234-4181bc5) Lines: 416 492 84.6 %
Date: 2014-12-18 Functions: 68 79 86.1 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 250 361 69.3 %

Function Name Sort by function name Hit count Sort by hit count
RgC_RgM_mul 0
RgC_RgV_mul 7
RgC_Rg_add 47994
RgC_Rg_div 315565
RgC_Rg_mul 445865
RgC_add 4542420
RgC_add_i 4556686
RgC_is_ei 0
RgC_neg 55357
RgC_neg_i 106226
RgC_sub 1166561
RgC_sub_i 1189143
RgM_RgC_mul 2025074
RgM_RgC_mul_i 4316014
RgM_RgV_mul 0
RgM_Rg_add 13082
RgM_Rg_add_shallow 33761
RgM_Rg_div 101825
RgM_Rg_mul 64742
RgM_Rg_sub 0
RgM_Rg_sub_shallow 154
RgM_add 3262
RgM_det_triangular 5306
RgM_is_ZM 25493
RgM_isdiagonal 28
RgM_isidentity 1001
RgM_isscalar 14987
RgM_mul 497592
RgM_multosym 0
RgM_neg 13398
RgM_powers 7
RgM_sqr 273
RgM_sub 5278
RgM_sumcol 334
RgM_transmul 0
RgM_transmultosym 441
RgM_zc_mul 41328
RgM_zc_mul_i 63266
RgM_zm_mul 5243
RgMrow_RgC_mul 0
RgMrow_RgC_mul_i 23950165
RgV_RgC_mul 261498
RgV_RgM_mul 27719
RgV_Rg_mul 4041
RgV_add 457781
RgV_dotproduct 1995917
RgV_dotproduct_i 2793579
RgV_dotsquare 826
RgV_is_ZMV 0
RgV_isin 21896
RgV_neg 5139
RgV_sub 57960
RgV_sum 207230
RgV_sumpart 448
RgV_sumpart2 0
RgV_zc_mul 0
RgV_zc_mul_i 21350
RgV_zm_mul 4578
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 1354651
gram_matrix 119
is_modular_mul 497116
is_modular_sqr 238
isdiagonal 7
matid 1180686
scalarcol 114879
scalarcol_i 432783
scalarcol_shallow 317904
scalarmat 173566
scalarmat_s 189
scalarmat_shallow 217

Generated by: LCOV version 1.9