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 20095-ff095b1) Lines: 465 538 86.4 %
Date: 2017-01-21 05:50:01 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 502982
RgC_Rg_div 1148095
RgC_Rg_mul 4062960
RgC_Rg_sub 3710
RgC_add 13466047
RgC_add_i 15833923
RgC_is_ei 0
RgC_neg 54749
RgC_neg_i 2664678
RgC_sub 1528314
RgC_sub_i 1562633
RgM_RgC_mul 8800704
RgM_RgC_mul_i 10519634
RgM_RgV_mul 0
RgM_Rg_add 16352
RgM_Rg_add_shallow 1596
RgM_Rg_div 103066
RgM_Rg_mul 71213
RgM_Rg_sub 0
RgM_Rg_sub_shallow 45229
RgM_add 496811
RgM_det_triangular 3836
RgM_is_QM 112
RgM_is_ZM 3687752
RgM_isdiagonal 28
RgM_isidentity 1953
RgM_isscalar 8009
RgM_mul 2033543
RgM_multosym 0
RgM_neg 469728
RgM_powers 154
RgM_sqr 910
RgM_sub 8437
RgM_sumcol 362
RgM_transmul 0
RgM_transmultosym 538
RgM_zc_mul 71610
RgM_zc_mul_i 105145
RgM_zm_mul 8339
RgMrow_RgC_mul 455
RgMrow_RgC_mul_i 75756990
RgMrow_zc_mul 69937
RgMrow_zc_mul_i 419256
RgV_RgC_mul 203486
RgV_RgM_mul 101118
RgV_Rg_mul 3713
RgV_add 542606
RgV_dotproduct 120471
RgV_dotproduct_i 1555138
RgV_dotsquare 1197
RgV_is_ZMV 21
RgV_isin 21735
RgV_kill0 4256
RgV_neg 8639
RgV_prod 30993
RgV_sub 75238
RgV_sum 280316
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 11508
_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 683843
fill_scalmat 1906349
gram_matrix 119
is_modular_mul 423115
is_modular_sqr 812
isdiagonal 7
matid 1515998
scalarcol 49904
scalarcol_i 428138
scalarcol_shallow 378234
scalarmat 389245
scalarmat_s 140
scalarmat_shallow 973

Generated by: LCOV version 1.11