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 20459-9710128) Lines: 465 538 86.4 %
Date: 2017-04-29 05:33:44 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 6
RgC_Rg_add 431310
RgC_Rg_div 979518
RgC_Rg_mul 3400974
RgC_Rg_sub 3180
RgC_add 7351254
RgC_add_i 9380862
RgC_is_ei 0
RgC_neg 46362
RgC_neg_i 2283444
RgC_sub 1277394
RgC_sub_i 1306458
RgM_RgC_mul 7497442
RgM_RgC_mul_i 8946034
RgM_RgV_mul 0
RgM_Rg_add 4260
RgM_Rg_add_shallow 462
RgM_Rg_div 89574
RgM_Rg_mul 64308
RgM_Rg_sub 0
RgM_Rg_sub_shallow 34428
RgM_add 425838
RgM_det_triangular 3288
RgM_is_QM 96
RgM_is_ZM 3163035
RgM_isdiagonal 24
RgM_isidentity 1674
RgM_isscalar 6942
RgM_mul 1739175
RgM_multosym 0
RgM_neg 402624
RgM_powers 132
RgM_sqr 780
RgM_sub 7182
RgM_sumcol 312
RgM_transmul 0
RgM_transmultosym 384
RgM_zc_mul 61380
RgM_zc_mul_i 89772
RgM_zm_mul 7098
RgMrow_RgC_mul 390
RgMrow_RgC_mul_i 64592472
RgMrow_zc_mul 59946
RgMrow_zc_mul_i 357348
RgV_RgC_mul 100398
RgV_RgM_mul 85939
RgV_Rg_mul 6318
RgV_add 466908
RgV_dotproduct 123648
RgV_dotproduct_i 1273943
RgV_dotsquare 1026
RgV_is_ZMV 18
RgV_isin 18630
RgV_kill0 2748
RgV_neg 7422
RgV_prod 29904
RgV_sub 64615
RgV_sum 218124
RgV_sumpart 444
RgV_sumpart2 0
RgV_zc_mul 24
RgV_zc_mul_i 31512
RgV_zm_mul 7927
RgX_RgMV_eval 396
RgX_RgM_eval 318
Rg_RgC_sub 11286
_RgM_add 1128
_RgM_cmul 1842
_RgM_mul 192
_RgM_one 1308
_RgM_red 942
_RgM_sqr 90
_RgM_sub 0
_RgM_zero 0
_gmul 605724
fill_scalmat 2677245
gram_matrix 102
is_modular_mul 358671
is_modular_sqr 696
isdiagonal 6
matid 1257551
scalarcol 41064
scalarcol_i 200838
scalarcol_shallow 159774
scalarmat 312492
scalarmat_s 120
scalarmat_shallow 1107088

Generated by: LCOV version 1.11