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 - ZV.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.8.0 lcov report (development 16393-29b9383) Lines: 543 585 92.8 %
Date: 2014-04-24 Functions: 88 94 93.6 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 360 422 85.3 %

Function Name Sort by function name Hit count Sort by hit count
Flc_lincomb1_inplace 5038764
RgM_check_ZM 6259
RgV_check_ZV 322389
ZC_ZV_mul 0
ZC_Z_add 45905
ZC_Z_divexact 210386
ZC_Z_mul 1910541
ZC_Z_sub 0
ZC_add 565336
ZC_add_i 569538
ZC_copy 353011
ZC_hnfremdiv 607369
ZC_lincomb 6284502
ZC_lincomb1 1837224
ZC_lincomb1_inplace 30025661
ZC_lincomb_1 360646
ZC_neg 1038443
ZC_reducemodlll 166012
ZC_reducemodmatrix 166047
ZC_reducemodmatrix_i 166047
ZC_sub 726696
ZC_sub_i 761440
ZC_z_mul 8905
ZMV_to_zmV 0
ZM_ZC_mul 3099878
ZM_ZC_mul_i 7800007
ZM_Z_divexact 34822
ZM_Z_mul 16439
ZM_add 2092
ZM_copy 19227
ZM_det_triangular 504750
ZM_equal 350040
ZM_hnfdivrem 19991
ZM_ishnf 35616
ZM_isidentity 61307
ZM_max_lg 405
ZM_mul 1112581
ZM_multosym 0
ZM_nc_mul_i 2278
ZM_neg 3929
ZM_nm_mul 152
ZM_pow 35
ZM_powu 33871
ZM_reducemodlll 0
ZM_reducemodmatrix 3143
ZM_reducemodmatrix_i 3143
ZM_sub 7176
ZM_supnorm 40
ZM_to_zm 170
ZM_togglesign 0
ZM_transmultosym 104240
ZM_zc_mul 1504187
ZM_zc_mul_i 1534723
ZM_zm_mul 6849
ZMrow_ZC_mul 36377474
ZMrow_ZC_mul_i 76784652
ZRED 483860
ZV_ZM_mul 6213
ZV_abscmp 2411
ZV_cmp 329755
ZV_content 1990
ZV_dotproduct 9111458
ZV_dotproduct_i 9369488
ZV_dotsquare 3572388
ZV_equal 5405705
ZV_equal0 204407
ZV_equal_lg 6490018
ZV_max_lg 7570
ZV_neg_inplace 41580
ZV_prod 14895
ZV_sum 40
ZV_to_nv 339
ZV_togglesign 645511
ZincrementalGS 647138
Zupdate_row 148099
_ZM_mul 155
_ZM_sqr 34561
check_ZV 22738
nm_Z_mul 152
zmV_to_ZMV 45
zm_to_Flm 8574
zm_to_ZM 9295
zvV_equal 225
zv_content 1198602
zv_dotproduct 87860992
zv_equal 1608207
zv_equal0 9793897
zv_neg 170828
zv_neg_inplace 60
zv_prod 206747
zv_prod_Z 259620
zv_sum 145
zv_to_Flv 124040
zv_z_mul 3127

Generated by: LCOV version 1.9