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 16624-25b9976) Lines: 406 470 86.4 %
Date: 2014-06-24 Functions: 68 77 88.3 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 242 340 71.2 %

Function Name Sort by function name Hit count Sort by hit count
RgC_RgM_mul 0
RgC_RgV_mul 10
RgC_Rg_add 31986
RgC_Rg_div 277146
RgC_Rg_mul 316818
RgC_add 3219530
RgC_add_i 3222945
RgC_neg 35848
RgC_neg_i 70534
RgC_sub 888346
RgC_sub_i 904624
RgM_RgC_mul 2131808
RgM_RgC_mul_i 3859815
RgM_RgV_mul 0
RgM_Rg_add 7346
RgM_Rg_add_shallow 23188
RgM_Rg_div 69319
RgM_Rg_mul 36578
RgM_Rg_sub 0
RgM_Rg_sub_shallow 125
RgM_add 510
RgM_det_triangular 2983
RgM_is_ZM 16429
RgM_isdiagonal 25
RgM_isidentity 500
RgM_isscalar 6895
RgM_mul 371763
RgM_multosym 0
RgM_neg 9130
RgM_powers 5
RgM_sqr 190
RgM_sub 3737
RgM_transmul 0
RgM_transmultosym 318
RgM_zc_mul 4460
RgM_zc_mul_i 20228
RgM_zm_mul 3702
RgMrow_RgC_mul 0
RgMrow_RgC_mul_i 17925227
RgV_RgC_mul 160111
RgV_RgM_mul 18324
RgV_Rg_mul 2556
RgV_add 426825
RgV_dotproduct 41408
RgV_dotproduct_i 576084
RgV_dotsquare 140
RgV_is_ZMV 0
RgV_isin 15552
RgV_neg 3504
RgV_sub 41674
RgV_sum 181100
RgV_sumpart 5704
RgV_sumpart2 5410
RgV_zc_mul 0
RgV_zc_mul_i 15270
RgV_zm_mul 3269
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 1031222
gram_matrix 85
is_modular_mul 371488
is_modular_sqr 165
isdiagonal 10
matid 917445
scalarcol 74461
scalarcol_i 394659
scalarcol_shallow 320198
scalarmat 113672
scalarmat_s 50
scalarmat_shallow 60

Generated by: LCOV version 1.9