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 21188-db834f2) Lines: 465 538 86.4 %
Date: 2017-10-20 06:23:07 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 3168120
RgC_Rg_div 2083665
RgC_Rg_mul 5344064
RgC_Rg_sub 21133
RgC_add 9557405
RgC_add_i 11930699
RgC_is_ei 0
RgC_neg 123780
RgC_neg_i 2733709
RgC_sub 1717116
RgC_sub_i 1755839
RgM_RgC_mul 9002830
RgM_RgC_mul_i 11615502
RgM_RgV_mul 0
RgM_Rg_add 5256
RgM_Rg_add_shallow 539
RgM_Rg_div 138409
RgM_Rg_mul 185614
RgM_Rg_sub 0
RgM_Rg_sub_shallow 50161
RgM_add 497490
RgM_det_triangular 15162
RgM_is_QM 112
RgM_is_ZM 4178432
RgM_isdiagonal 329
RgM_isidentity 12824
RgM_isscalar 23795
RgM_mul 2328317
RgM_multosym 0
RgM_neg 469728
RgM_powers 154
RgM_sqr 1057
RgM_sub 9999
RgM_sumcol 362
RgM_transmul 0
RgM_transmultosym 447
RgM_zc_mul 71631
RgM_zc_mul_i 107246
RgM_zm_mul 9719
RgMrow_RgC_mul 1050
RgMrow_RgC_mul_i 79824708
RgMrow_zc_mul 69937
RgMrow_zc_mul_i 415866
RgV_RgC_mul 141635
RgV_RgM_mul 56674
RgV_Rg_mul 8639
RgV_add 609923
RgV_dotproduct 125753
RgV_dotproduct_i 1091329
RgV_dotsquare 1197
RgV_is_ZMV 21
RgV_isin 21735
RgV_kill0 3521
RgV_neg 25026
RgV_prod 39511
RgV_sub 73612
RgV_sum 318061
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 3721185
gram_matrix 119
is_modular_mul 628637
is_modular_sqr 931
isdiagonal 308
matid 1859262
scalarcol 77967
scalarcol_i 362976
scalarcol_shallow 285009
scalarmat 435998
scalarmat_s 140
scalarmat_shallow 1425792

Generated by: LCOV version 1.11