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 18894-f1ef88e) Lines: 438 507 86.4 %
Date: 2016-05-03 Functions: 73 82 89.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 265 373 71.0 %

Function Name Sort by function name Hit count Sort by hit count
RgC_RgM_mul 0
RgC_RgV_mul 7
RgC_Rg_add 49310
RgC_Rg_div 988839
RgC_Rg_mul 3423050
RgC_add 11344063
RgC_add_i 13041017
RgC_is_ei 0
RgC_neg 56851
RgC_neg_i 1722522
RgC_sub 1230744
RgC_sub_i 1259840
RgM_RgC_mul 7099741
RgM_RgC_mul_i 8494775
RgM_RgV_mul 0
RgM_Rg_add 15554
RgM_Rg_add_shallow 1666
RgM_Rg_div 104219
RgM_Rg_mul 66231
RgM_Rg_sub 0
RgM_Rg_sub_shallow 31059
RgM_add 412573
RgM_det_triangular 6664
RgM_is_ZM 2736268
RgM_isdiagonal 28
RgM_isidentity 1771
RgM_isscalar 8092
RgM_mul 1539353
RgM_multosym 0
RgM_neg 328986
RgM_powers 77
RgM_sqr 609
RgM_sub 7118
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 259
RgMrow_RgC_mul_i 49689622
RgV_RgC_mul 324025
RgV_RgM_mul 99998
RgV_Rg_mul 3086
RgV_add 482793
RgV_dotproduct 86646
RgV_dotproduct_i 1584905
RgV_dotsquare 868
RgV_is_ZMV 21
RgV_isin 21833
RgV_kill0 3472
RgV_neg 7575
RgV_prod 33369
RgV_sub 68330
RgV_sum 247883
RgV_sumpart 518
RgV_sumpart2 0
RgV_zc_mul 0
RgV_zc_mul_i 35786
RgV_zm_mul 8956
RgX_RgMV_eval 357
RgX_RgM_eval 196
_RgM_add 1148
_RgM_cmul 1701
_RgM_mul 231
_RgM_one 1008
_RgM_red 847
_RgM_sqr 98
_RgM_zero 0
_gmul 702443
fill_scalmat 1670904
gram_matrix 119
is_modular_mul 389559
is_modular_sqr 539
isdiagonal 7
matid 1391820
scalarcol 122971
scalarcol_i 476938
scalarcol_shallow 353967
scalarmat 278895
scalarmat_s 189
scalarmat_shallow 7

Generated by: LCOV version 1.9