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 16746-c2cb716) Lines: 561 610 92.0 %
Date: 2014-08-31 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 5035747
RgM_check_ZM 6270
RgV_check_ZV 322238
ZC_ZV_mul 0
ZC_Z_add 44715
ZC_Z_divexact 213963
ZC_Z_mul 1668316
ZC_Z_sub 0
ZC_add 569694
ZC_add_i 574094
ZC_copy 349065
ZC_hnfremdiv 606467
ZC_lincomb 5101609
ZC_lincomb1 1722283
ZC_lincomb1_inplace 24303957
ZC_lincomb_1 253869
ZC_neg 864333
ZC_reducemodlll 166305
ZC_reducemodmatrix 166340
ZC_reducemodmatrix_i 166340
ZC_sub 723305
ZC_sub_i 757281
ZC_z_mul 8735
ZMV_to_zmV 0
ZM_ZC_mul 2673571
ZM_ZC_mul_i 6609812
ZM_Z_divexact 35299
ZM_Z_mul 16677
ZM_add 2243
ZM_copy 19111
ZM_det_triangular 503663
ZM_equal 347767
ZM_hnfdivrem 20275
ZM_ishnf 35865
ZM_isidentity 61244
ZM_max_lg 410
ZM_mul 1015010
ZM_multosym 0
ZM_nc_mul_i 2500
ZM_neg 3925
ZM_nm_mul 173
ZM_pow 35
ZM_powu 33976
ZM_reducemodlll 0
ZM_reducemodmatrix 3145
ZM_reducemodmatrix_i 3145
ZM_sqr 15
ZM_sub 7096
ZM_supnorm 90
ZM_to_zm 170
ZM_togglesign 0
ZM_transmul 355
ZM_transmultosym 112870
ZM_zc_mul 729743
ZM_zc_mul_i 799929
ZM_zm_mul 27068
ZMrow_ZC_mul 6427069
ZMrow_ZC_mul_i 38425312
ZRED 485771
ZV_ZM_mul 2260
ZV_abscmp 2376
ZV_cmp 320650
ZV_content 1960
ZV_dotproduct 8715288
ZV_dotproduct_i 9835689
ZV_dotsquare 3167193
ZV_equal 5544456
ZV_equal0 199146
ZV_equal_lg 6616412
ZV_max_lg 7580
ZV_neg_inplace 40809
ZV_prod 14919
ZV_sum 40
ZV_to_nv 375
ZV_togglesign 631069
ZV_zc_mul 0
ZincrementalGS 649256
Zupdate_row 149221
_ZM_mul 155
_ZM_sqr 34771
check_ZV 22765
nm_Z_mul 173
zmV_to_ZMV 45
zm_to_Flm 8900
zm_to_ZM 39023
zvV_equal 225
zv_content 376667
zv_dotproduct 89643355
zv_equal 1608957
zv_equal0 9949230
zv_neg 170606
zv_neg_inplace 110
zv_prod 206755
zv_prod_Z 259425
zv_sum 145
zv_to_Flv 129800
zv_z_mul 3090

Generated by: LCOV version 1.9