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.8.0 lcov report (development 19053-42ab05e) Lines: 438 508 86.2 %
Date: 2016-06-29 Functions: 73 83 88.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 266 373 71.3 %

Function Name Sort by function name Hit count Sort by hit count
RgC_RgM_mul 0
RgC_RgV_mul 7
RgC_Rg_add 51606
RgC_Rg_div 1063903
RgC_Rg_mul 3716119
RgC_add 13017495
RgC_add_i 15389046
RgC_is_ei 0
RgC_neg 57509
RgC_neg_i 2666542
RgC_sub 1248286
RgC_sub_i 1277494
RgM_RgC_mul 8713360
RgM_RgC_mul_i 10113784
RgM_RgV_mul 0
RgM_Rg_add 17584
RgM_Rg_add_shallow 1659
RgM_Rg_div 105892
RgM_Rg_mul 67841
RgM_Rg_sub 0
RgM_Rg_sub_shallow 31143
RgM_add 497560
RgM_det_triangular 6678
RgM_is_ZM 3652008
RgM_isdiagonal 28
RgM_isidentity 1771
RgM_isscalar 8232
RgM_mul 1997965
RgM_multosym 0
RgM_neg 469490
RgM_powers 154
RgM_sqr 896
RgM_sub 7167
RgM_sumcol 362
RgM_transmul 0
RgM_transmultosym 490
RgM_zc_mul 76300
RgM_zc_mul_i 104724
RgM_zm_mul 7069
RgMrow_RgC_mul 455
RgMrow_RgC_mul_i 68359434
RgV_RgC_mul 320952
RgV_RgM_mul 99914
RgV_Rg_mul 3086
RgV_add 482828
RgV_dotproduct 93205
RgV_dotproduct_i 1587761
RgV_dotsquare 868
RgV_is_ZMV 21
RgV_isin 21833
RgV_kill0 3479
RgV_neg 7617
RgV_prod 33397
RgV_sub 73671
RgV_sum 247960
RgV_sumpart 518
RgV_sumpart2 0
RgV_zc_mul 0
RgV_zc_mul_i 35786
RgV_zm_mul 8956
RgX_RgMV_eval 462
RgX_RgM_eval 357
_RgM_add 1309
_RgM_cmul 2128
_RgM_mul 224
_RgM_one 1498
_RgM_red 1085
_RgM_sqr 105
_RgM_sub 0
_RgM_zero 0
_gmul 702443
fill_scalmat 1672836
gram_matrix 119
is_modular_mul 390763
is_modular_sqr 812
isdiagonal 7
matid 1392737
scalarcol 122978
scalarcol_i 479983
scalarcol_shallow 357005
scalarmat 279910
scalarmat_s 189
scalarmat_shallow 7

Generated by: LCOV version 1.9