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 19828-fe528f7) Lines: 456 529 86.2 %
Date: 2016-12-07 05:49:12 Functions: 78 87 89.7 %
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 501429
RgC_Rg_div 1120907
RgC_Rg_mul 3881009
RgC_Rg_sub 3710
RgC_add 12880753
RgC_add_i 15252374
RgC_is_ei 0
RgC_neg 54672
RgC_neg_i 2664475
RgC_sub 1428523
RgC_sub_i 1462842
RgM_RgC_mul 8568718
RgM_RgC_mul_i 10099397
RgM_RgV_mul 0
RgM_Rg_add 16352
RgM_Rg_add_shallow 1596
RgM_Rg_div 103283
RgM_Rg_mul 71115
RgM_Rg_sub 0
RgM_Rg_sub_shallow 45215
RgM_add 497574
RgM_det_triangular 3724
RgM_is_ZM 3660067
RgM_isdiagonal 28
RgM_isidentity 1953
RgM_isscalar 7995
RgM_mul 2017954
RgM_multosym 0
RgM_neg 469672
RgM_powers 154
RgM_sqr 896
RgM_sub 8437
RgM_sumcol 362
RgM_transmul 0
RgM_transmultosym 538
RgM_zc_mul 70770
RgM_zc_mul_i 104305
RgM_zm_mul 8339
RgMrow_RgC_mul 455
RgMrow_RgC_mul_i 68920043
RgMrow_zc_mul 69937
RgMrow_zc_mul_i 409995
RgV_RgC_mul 137079
RgV_RgM_mul 100950
RgV_Rg_mul 3713
RgV_add 489152
RgV_dotproduct 89381
RgV_dotproduct_i 1457452
RgV_dotsquare 1197
RgV_is_ZMV 21
RgV_isin 21735
RgV_kill0 3829
RgV_neg 8632
RgV_prod 30286
RgV_sub 74023
RgV_sum 257587
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 677690
fill_scalmat 1825702
gram_matrix 119
is_modular_mul 408926
is_modular_sqr 812
isdiagonal 7
matid 1442211
scalarcol 45851
scalarcol_i 380279
scalarcol_shallow 334428
scalarmat 382420
scalarmat_s 140
scalarmat_shallow 938

Generated by: LCOV version 1.11