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 19614-52e089f) Lines: 455 529 86.0 %
Date: 2016-09-28 05:54:17 Functions: 77 87 88.5 %
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 465853
RgC_Rg_div 1113784
RgC_Rg_mul 4007189
RgC_Rg_sub 3213
RgC_add 12925168
RgC_add_i 15296719
RgC_is_ei 0
RgC_neg 64675
RgC_neg_i 2674366
RgC_sub 1379580
RgC_sub_i 1413586
RgM_RgC_mul 8653282
RgM_RgC_mul_i 10251518
RgM_RgV_mul 0
RgM_Rg_add 17297
RgM_Rg_add_shallow 1897
RgM_Rg_div 106233
RgM_Rg_mul 150397
RgM_Rg_sub 0
RgM_Rg_sub_shallow 48764
RgM_add 497560
RgM_det_triangular 6916
RgM_is_ZM 3678492
RgM_isdiagonal 28
RgM_isidentity 1904
RgM_isscalar 8350
RgM_mul 2026026
RgM_multosym 0
RgM_neg 469651
RgM_powers 154
RgM_sqr 896
RgM_sub 8297
RgM_sumcol 362
RgM_transmul 0
RgM_transmultosym 497
RgM_zc_mul 73976
RgM_zc_mul_i 107198
RgM_zm_mul 8199
RgMrow_RgC_mul 455
RgMrow_RgC_mul_i 69678289
RgMrow_zc_mul 69937
RgMrow_zc_mul_i 416017
RgV_RgC_mul 200765
RgV_RgM_mul 106536
RgV_Rg_mul 3629
RgV_add 486010
RgV_dotproduct 94512
RgV_dotproduct_i 1539505
RgV_dotsquare 868
RgV_is_ZMV 21
RgV_isin 21777
RgV_kill0 3787
RgV_neg 8415
RgV_prod 33205
RgV_sub 74023
RgV_sum 255252
RgV_sumpart 478
RgV_sumpart2 0
RgV_zc_mul 0
RgV_zc_mul_i 36765
RgV_zm_mul 9259
RgX_RgMV_eval 462
RgX_RgM_eval 364
Rg_RgC_sub 10745
_RgM_add 1309
_RgM_cmul 2135
_RgM_mul 224
_RgM_one 1512
_RgM_red 1092
_RgM_sqr 105
_RgM_sub 0
_RgM_zero 0
_gmul 708945
fill_scalmat 1995727
gram_matrix 119
is_modular_mul 417845
is_modular_sqr 812
isdiagonal 7
matid 1431111
scalarcol 71495
scalarcol_i 580046
scalarcol_shallow 508551
scalarmat 563510
scalarmat_s 189
scalarmat_shallow 924

Generated by: LCOV version 1.11