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 20422-b487f4d) Lines: 465 538 86.4 %
Date: 2017-03-22 05:51:54 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 503136
RgC_Rg_div 1143152
RgC_Rg_mul 3968233
RgC_Rg_sub 3710
RgC_add 8576939
RgC_add_i 10944815
RgC_is_ei 0
RgC_neg 54106
RgC_neg_i 2664035
RgC_sub 1493090
RgC_sub_i 1527061
RgM_RgC_mul 8752156
RgM_RgC_mul_i 10442833
RgM_RgV_mul 0
RgM_Rg_add 4970
RgM_Rg_add_shallow 539
RgM_Rg_div 104543
RgM_Rg_mul 75028
RgM_Rg_sub 0
RgM_Rg_sub_shallow 44496
RgM_add 496811
RgM_det_triangular 3836
RgM_is_QM 112
RgM_is_ZM 3690190
RgM_isdiagonal 28
RgM_isidentity 1953
RgM_isscalar 8100
RgM_mul 2029024
RgM_multosym 0
RgM_neg 469728
RgM_powers 154
RgM_sqr 910
RgM_sub 8391
RgM_sumcol 362
RgM_transmul 0
RgM_transmultosym 447
RgM_zc_mul 71610
RgM_zc_mul_i 104797
RgM_zm_mul 8293
RgMrow_RgC_mul 455
RgMrow_RgC_mul_i 75395313
RgMrow_zc_mul 69937
RgMrow_zc_mul_i 417361
RgV_RgC_mul 117156
RgV_RgM_mul 100761
RgV_Rg_mul 7444
RgV_add 544489
RgV_dotproduct 144261
RgV_dotproduct_i 1491023
RgV_dotsquare 1197
RgV_is_ZMV 21
RgV_isin 21735
RgV_kill0 3206
RgV_neg 8695
RgV_prod 34913
RgV_sub 75377
RgV_sum 255655
RgV_sumpart 518
RgV_sumpart2 0
RgV_zc_mul 28
RgV_zc_mul_i 36793
RgV_zm_mul 9259
RgX_RgMV_eval 462
RgX_RgM_eval 371
Rg_RgC_sub 13169
_RgM_add 1316
_RgM_cmul 2149
_RgM_mul 224
_RgM_one 1526
_RgM_red 1099
_RgM_sqr 105
_RgM_sub 0
_RgM_zero 0
_gmul 706929
fill_scalmat 3126774
gram_matrix 119
is_modular_mul 418453
is_modular_sqr 812
isdiagonal 7
matid 1468254
scalarcol 47909
scalarcol_i 236021
scalarcol_shallow 188112
scalarmat 364570
scalarmat_s 140
scalarmat_shallow 1293817

Generated by: LCOV version 1.11