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-bordeaux.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.10.0 lcov report (development 20916-a74d914) Lines: 465 538 86.4 %
Date: 2017-08-20 06:25:02 Functions: 79 88 89.8 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
RgC_RgM_mul 0
RgC_RgV_mul 7
RgC_Rg_add 3028309
RgC_Rg_div 2158397
RgC_Rg_mul 5717863
RgC_Rg_sub 21133
RgC_add 9426748
RgC_add_i 11800322
RgC_is_ei 0
RgC_neg 123802
RgC_neg_i 2789955
RgC_sub 2116342
RgC_sub_i 2155712
RgM_RgC_mul 9052626
RgM_RgC_mul_i 12649095
RgM_RgV_mul 0
RgM_Rg_add 5306
RgM_Rg_add_shallow 539
RgM_Rg_div 138311
RgM_Rg_mul 220642
RgM_Rg_sub 0
RgM_Rg_sub_shallow 50887
RgM_add 497560
RgM_det_triangular 25620
RgM_is_QM 112
RgM_is_ZM 4171265
RgM_isdiagonal 28
RgM_isidentity 12824
RgM_isscalar 23795
RgM_mul 2352629
RgM_multosym 0
RgM_neg 476756
RgM_powers 154
RgM_sqr 1043
RgM_sub 10066
RgM_sumcol 362
RgM_transmul 0
RgM_transmultosym 447
RgM_zc_mul 71932
RgM_zc_mul_i 108194
RgM_zm_mul 9786
RgMrow_RgC_mul 1050
RgMrow_RgC_mul_i 91264445
RgMrow_zc_mul 69937
RgMrow_zc_mul_i 423448
RgV_RgC_mul 142125
RgV_RgM_mul 56611
RgV_Rg_mul 8669
RgV_add 614993
RgV_dotproduct 146746
RgV_dotproduct_i 1112455
RgV_dotsquare 1197
RgV_is_ZMV 21
RgV_isin 21735
RgV_kill0 3521
RgV_neg 25040
RgV_prod 39497
RgV_sub 73612
RgV_sum 318081
RgV_sumpart 518
RgV_sumpart2 0
RgV_zc_mul 28
RgV_zc_mul_i 30917
RgV_zm_mul 7452
RgX_RgMV_eval 462
RgX_RgM_eval 819
Rg_RgC_sub 101586
_RgM_add 1841
_RgM_cmul 3122
_RgM_mul 273
_RgM_one 2471
_RgM_red 1645
_RgM_sqr 119
_RgM_sub 0
_RgM_zero 0
_gmul 727211
fill_scalmat 3694290
gram_matrix 119
is_modular_mul 700881
is_modular_sqr 931
isdiagonal 7
matid 1864797
scalarcol 78366
scalarcol_i 319944
scalarcol_shallow 241578
scalarmat 436019
scalarmat_s 140
scalarmat_shallow 1393341

Generated by: LCOV version 1.11