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 16804-345a01c) Lines: 402 470 85.5 %
Date: 2014-09-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 14
RgC_Rg_add 44919
RgC_Rg_div 306000
RgC_Rg_mul 399713
RgC_add 4150407
RgC_add_i 4155188
RgC_neg 50674
RgC_neg_i 99261
RgC_sub 1067392
RgC_sub_i 1088129
RgM_RgC_mul 1650864
RgM_RgC_mul_i 3505058
RgM_RgV_mul 0
RgM_Rg_add 10283
RgM_Rg_add_shallow 32298
RgM_Rg_div 97132
RgM_Rg_mul 53865
RgM_Rg_sub 0
RgM_Rg_sub_shallow 175
RgM_add 714
RgM_det_triangular 4494
RgM_is_ZM 23033
RgM_isdiagonal 35
RgM_isidentity 700
RgM_isscalar 9639
RgM_mul 453092
RgM_multosym 0
RgM_neg 12789
RgM_powers 7
RgM_sqr 266
RgM_sub 4926
RgM_transmul 0
RgM_transmultosym 441
RgM_zc_mul 6279
RgM_zc_mul_i 26302
RgM_zm_mul 4877
RgMrow_RgC_mul 0
RgMrow_RgC_mul_i 15618118
RgV_RgC_mul 223306
RgV_RgM_mul 25676
RgV_Rg_mul 3745
RgV_add 459829
RgV_dotproduct 59129
RgV_dotproduct_i 806987
RgV_dotsquare 721
RgV_is_ZMV 0
RgV_isin 21798
RgV_neg 4851
RgV_sub 58338
RgV_sum 198778
RgV_sumpart 378
RgV_sumpart2 0
RgV_zc_mul 0
RgV_zc_mul_i 21343
RgV_zm_mul 4571
RgX_RgMV_eval 35
RgX_RgM_eval 42
_RgM_add 182
_RgM_cmul 259
_RgM_mul 35
_RgM_one 147
_RgM_red 119
_RgM_sqr 21
_RgM_zero 0
fill_scalmat 1264141
gram_matrix 119
is_modular_mul 452714
is_modular_sqr 231
isdiagonal 14
matid 1110643
scalarcol 85479
scalarcol_i 457659
scalarcol_shallow 372180
scalarmat 153351
scalarmat_s 70
scalarmat_shallow 84

Generated by: LCOV version 1.9