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 - ZV.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.8.0 lcov report (development 19378-5335519) Lines: 733 814 90.0 %
Date: 2016-08-31 06:11:49 Functions: 104 111 93.7 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
Flc_lincomb1_inplace 7183856
RgM_check_ZM 112052
RgV_check_ZV 459203
ZC_ZV_mul 0
ZC_Z_add 92827
ZC_Z_divexact 2371208
ZC_Z_mul 2930182
ZC_Z_sub 0
ZC_add 1116883
ZC_add_i 2505441
ZC_copy 957328
ZC_hnfremdiv 825032
ZC_is_ei 37569
ZC_lincomb 9905851
ZC_lincomb1 2640637
ZC_lincomb1_inplace 45685253
ZC_lincomb_1 422902
ZC_neg 2074999
ZC_reducemodlll 319050
ZC_reducemodmatrix 320604
ZC_reducemodmatrix_i 320604
ZC_sub 1083153
ZC_sub_i 1750564
ZC_z_mul 13370
ZMV_to_zmV 21
ZM_ZC_mul 4904773
ZM_ZC_mul_i 19461689
ZM_Z_div 1904
ZM_Z_divexact 741973
ZM_Z_mul 56403
ZM_add 603359
ZM_copy 86527
ZM_det_triangular 742205
ZM_diag_mul 910
ZM_equal 493581
ZM_hnfdivrem 60453
ZM_ishnf 75652
ZM_isidentity 253290
ZM_isscalar 14847
ZM_max_lg 1645
ZM_mul 4278813
ZM_mul_classical 4373306
ZM_mul_diag 14
ZM_mul_i 4350990
ZM_mul_sw 10696
ZM_multosym 0
ZM_nc_mul_i 595192
ZM_neg 228277
ZM_nm_mul 565675
ZM_pow 0
ZM_powu 31094
ZM_reducemodlll 0
ZM_reducemodmatrix 5404
ZM_reducemodmatrix_i 5404
ZM_sqr 33012
ZM_sqr_i 33012
ZM_sub 582896
ZM_supnorm 1274
ZM_to_zm 777
ZM_togglesign 0
ZM_transmul 497
ZM_transmultosym 160265
ZM_zc_mul 1459400
ZM_zc_mul_i 2666781
ZM_zm_mul 587014
ZMrow_ZC_mul 20921378
ZMrow_ZC_mul_i 141249333
ZRED 851572
ZV_ZM_mul 6181
ZV_abscmp 3480
ZV_cmp 571079
ZV_content 9212
ZV_dotproduct 11839767
ZV_dotproduct_i 13056652
ZV_dotsquare 5042554
ZV_equal 7762650
ZV_equal0 468220
ZV_equal_lg 9320900
ZV_max_lg 10612
ZV_neg_inplace 58563
ZV_prod 35957
ZV_sum 56
ZV_to_nv 6097
ZV_togglesign 1823053
ZV_zc_mul 0
Z_ZC_sub 305967
ZincrementalGS 1168501
Zupdate_row 347905
_ZM_mul 217
_ZM_sqr 32550
_mulii 905015
add_slices 85568
check_ZV 358973
nm_Z_mul 565675
subtract_slices 74872
zmV_to_ZMV 98
zm_to_Flm 15792
zm_to_ZM 365058
zvV_equal 343
zv_ZM_mul 1204
zv_content 879466
zv_dotproduct 151007458
zv_equal 21890939
zv_equal0 17346924
zv_neg 212543
zv_neg_inplace 231
zv_prod 290556
zv_prod_Z 365177
zv_sum 1582
zv_to_Flv 223314
zv_z_mul 4361

Generated by: LCOV version 1.11