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 16624-25b9976) Lines: 561 610 92.0 %
Date: 2014-06-24 Functions: 90 97 92.8 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 369 438 84.2 %

Function Name Sort by function name Hit count Sort by hit count
Flc_lincomb1_inplace 5037674
RgM_check_ZM 6269
RgV_check_ZV 322318
ZC_ZV_mul 0
ZC_Z_add 45897
ZC_Z_divexact 214919
ZC_Z_mul 2068870
ZC_Z_sub 0
ZC_add 571983
ZC_add_i 578037
ZC_copy 354500
ZC_hnfremdiv 608623
ZC_lincomb 6268129
ZC_lincomb1 1837288
ZC_lincomb1_inplace 30025612
ZC_lincomb_1 358264
ZC_neg 1037434
ZC_reducemodlll 166276
ZC_reducemodmatrix 166311
ZC_reducemodmatrix_i 166311
ZC_sub 727542
ZC_sub_i 764620
ZC_z_mul 8905
ZMV_to_zmV 0
ZM_ZC_mul 3089979
ZM_ZC_mul_i 7813095
ZM_Z_divexact 35341
ZM_Z_mul 16583
ZM_add 2326
ZM_copy 19449
ZM_det_triangular 504793
ZM_equal 349282
ZM_hnfdivrem 20211
ZM_ishnf 35745
ZM_isidentity 61250
ZM_max_lg 415
ZM_mul 1112571
ZM_multosym 0
ZM_nc_mul_i 4110
ZM_neg 3925
ZM_nm_mul 236
ZM_pow 35
ZM_powu 33955
ZM_reducemodlll 0
ZM_reducemodmatrix 3148
ZM_reducemodmatrix_i 3148
ZM_sqr 15
ZM_sub 7382
ZM_supnorm 90
ZM_to_zm 170
ZM_togglesign 0
ZM_transmul 355
ZM_transmultosym 112867
ZM_zc_mul 1495813
ZM_zc_mul_i 1567491
ZM_zm_mul 27291
ZMrow_ZC_mul 36485323
ZMrow_ZC_mul_i 78132015
ZRED 485535
ZV_ZM_mul 2256
ZV_abscmp 2411
ZV_cmp 335251
ZV_content 1992
ZV_dotproduct 10453243
ZV_dotproduct_i 11224928
ZV_dotsquare 3565360
ZV_equal 5405263
ZV_equal0 206161
ZV_equal_lg 6487000
ZV_max_lg 7580
ZV_neg_inplace 40277
ZV_prod 14906
ZV_sum 40
ZV_to_nv 376
ZV_togglesign 648503
ZV_zc_mul 0
ZincrementalGS 649010
Zupdate_row 149108
_ZM_mul 155
_ZM_sqr 34729
check_ZV 22763
nm_Z_mul 236
zmV_to_ZMV 45
zm_to_Flm 8574
zm_to_ZM 39237
zvV_equal 225
zv_content 1190627
zv_dotproduct 87860992
zv_equal 1608622
zv_equal0 9795826
zv_neg 170635
zv_neg_inplace 60
zv_prod 206765
zv_prod_Z 259425
zv_sum 145
zv_to_Flv 124040
zv_z_mul 3127

Generated by: LCOV version 1.9