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 16358-a11f489) Lines: 543 585 92.8 %
Date: 2014-04-11 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 3214
RgV_check_ZV 322374
ZC_ZV_mul 0
ZC_Z_add 45895
ZC_Z_divexact 210281
ZC_Z_mul 1908859
ZC_Z_sub 0
ZC_add 562160
ZC_add_i 566362
ZC_copy 351276
ZC_hnfremdiv 607143
ZC_lincomb 6216421
ZC_lincomb1 1827281
ZC_lincomb1_inplace 29788044
ZC_lincomb_1 358854
ZC_neg 1022782
ZC_reducemodlll 166002
ZC_reducemodmatrix 166037
ZC_reducemodmatrix_i 166037
ZC_sub 725048
ZC_sub_i 759754
ZC_z_mul 8900
ZMV_to_zmV 0
ZM_ZC_mul 3099219
ZM_ZC_mul_i 6524525
ZM_Z_divexact 34822
ZM_Z_mul 16387
ZM_add 2082
ZM_copy 19155
ZM_det_triangular 504575
ZM_equal 349928
ZM_hnfdivrem 19911
ZM_ishnf 35526
ZM_isidentity 1603
ZM_max_lg 405
ZM_mul 920985
ZM_multosym 0
ZM_nc_mul_i 2278
ZM_neg 440
ZM_nm_mul 152
ZM_pow 35
ZM_powu 33871
ZM_reducemodlll 0
ZM_reducemodmatrix 3128
ZM_reducemodmatrix_i 3128
ZM_sub 7159
ZM_supnorm 40
ZM_to_zm 170
ZM_togglesign 0
ZM_transmultosym 2124
ZM_zc_mul 1504240
ZM_zc_mul_i 1534738
ZM_zm_mul 6832
ZMrow_ZC_mul 36504722
ZMrow_ZC_mul_i 67304589
ZRED 483815
ZV_ZM_mul 645
ZV_abscmp 2406
ZV_cmp 329655
ZV_content 1990
ZV_dotproduct 8286531
ZV_dotproduct_i 6030068
ZV_dotsquare 3369202
ZV_equal 5405705
ZV_equal0 204283
ZV_equal_lg 6489691
ZV_max_lg 7570
ZV_neg_inplace 23383
ZV_prod 12931
ZV_sum 40
ZV_to_nv 339
ZV_togglesign 622346
ZincrementalGS 647068
Zupdate_row 148115
_ZM_mul 155
_ZM_sqr 34561
check_ZV 6143
nm_Z_mul 152
zmV_to_ZMV 45
zm_to_Flm 8574
zm_to_ZM 9278
zvV_equal 225
zv_content 1198638
zv_dotproduct 87860992
zv_equal 1608203
zv_equal0 9793887
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