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-bordeaux1.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 16741-1378b1c) Lines: 402 470 85.5 %
Date: 2014-08-17 Functions: 67 77 87.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 237 340 69.7 %

Function Name Sort by function name Hit count Sort by hit count
RgC_RgM_mul 0
RgC_RgV_mul 10
RgC_Rg_add 32085
RgC_Rg_div 276804
RgC_Rg_mul 317356
RgC_add 3166871
RgC_add_i 3170286
RgC_neg 36188
RgC_neg_i 70893
RgC_sub 762248
RgC_sub_i 777059
RgM_RgC_mul 1361465
RgM_RgC_mul_i 2685468
RgM_RgV_mul 0
RgM_Rg_add 7345
RgM_Rg_add_shallow 23070
RgM_Rg_div 69210
RgM_Rg_mul 36507
RgM_Rg_sub 0
RgM_Rg_sub_shallow 125
RgM_add 510
RgM_det_triangular 2985
RgM_is_ZM 16271
RgM_isdiagonal 25
RgM_isidentity 500
RgM_isscalar 6875
RgM_mul 323490
RgM_multosym 0
RgM_neg 9135
RgM_powers 5
RgM_sqr 190
RgM_sub 3518
RgM_transmul 0
RgM_transmultosym 317
RgM_zc_mul 4460
RgM_zc_mul_i 18761
RgM_zm_mul 3483
RgMrow_RgC_mul 0
RgMrow_RgC_mul_i 11701979
RgV_RgC_mul 158963
RgV_RgM_mul 18320
RgV_Rg_mul 2347
RgV_add 426291
RgV_dotproduct 42235
RgV_dotproduct_i 575739
RgV_dotsquare 515
RgV_is_ZMV 0
RgV_isin 15570
RgV_neg 3450
RgV_sub 41670
RgV_sum 179410
RgV_sumpart 270
RgV_sumpart2 0
RgV_zc_mul 0
RgV_zc_mul_i 15245
RgV_zm_mul 3265
RgX_RgMV_eval 25
RgX_RgM_eval 30
_RgM_add 130
_RgM_cmul 185
_RgM_mul 25
_RgM_one 105
_RgM_red 85
_RgM_sqr 15
_RgM_zero 0
fill_scalmat 980722
gram_matrix 85
is_modular_mul 323220
is_modular_sqr 165
isdiagonal 10
matid 866968
scalarcol 73597
scalarcol_i 393335
scalarcol_shallow 319738
scalarmat 113649
scalarmat_s 50
scalarmat_shallow 60

Generated by: LCOV version 1.9