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 17110-9967e23) Lines: 557 610 91.3 %
Date: 2014-11-26 Functions: 89 97 91.8 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 368 438 84.0 %

Function Name Sort by function name Hit count Sort by hit count
Flc_lincomb1_inplace 5194341
RgM_check_ZM 6180
RgV_check_ZV 307750
ZC_ZV_mul 0
ZC_Z_add 47810
ZC_Z_divexact 186329
ZC_Z_mul 1711627
ZC_Z_sub 0
ZC_add 734337
ZC_add_i 738861
ZC_copy 309984
ZC_hnfremdiv 566912
ZC_lincomb 5153005
ZC_lincomb1 1651639
ZC_lincomb1_inplace 24673080
ZC_lincomb_1 260184
ZC_neg 859091
ZC_reducemodlll 130904
ZC_reducemodmatrix 130924
ZC_reducemodmatrix_i 130924
ZC_sub 720630
ZC_sub_i 757445
ZC_z_mul 8735
ZMV_to_zmV 0
ZM_ZC_mul 2577362
ZM_ZC_mul_i 6616881
ZM_Z_divexact 23770
ZM_Z_mul 17032
ZM_add 2355
ZM_copy 19756
ZM_det_triangular 411045
ZM_equal 265765
ZM_hnfdivrem 20560
ZM_ishnf 36015
ZM_isidentity 61367
ZM_max_lg 955
ZM_mul 997138
ZM_multosym 0
ZM_nc_mul_i 2544
ZM_neg 3815
ZM_nm_mul 205
ZM_pow 0
ZM_powu 22380
ZM_reducemodlll 0
ZM_reducemodmatrix 3220
ZM_reducemodmatrix_i 3220
ZM_sqr 30
ZM_sub 7423
ZM_supnorm 120
ZM_to_zm 170
ZM_togglesign 0
ZM_transmul 355
ZM_transmultosym 112920
ZM_zc_mul 978665
ZM_zc_mul_i 1053496
ZM_zm_mul 29078
ZMrow_ZC_mul 14654439
ZMrow_ZC_mul_i 49520263
ZRED 380003
ZV_ZM_mul 2360
ZV_abscmp 2411
ZV_cmp 274420
ZV_content 2060
ZV_dotproduct 7035457
ZV_dotproduct_i 8408221
ZV_dotsquare 2824819
ZV_equal 5547834
ZV_equal0 210963
ZV_equal_lg 6386313
ZV_max_lg 7580
ZV_neg_inplace 40987
ZV_prod 15059
ZV_sum 40
ZV_to_nv 345
ZV_togglesign 635813
ZV_zc_mul 0
ZincrementalGS 507977
Zupdate_row 120420
_ZM_mul 155
_ZM_sqr 23420
check_ZV 22610
nm_Z_mul 205
zmV_to_ZMV 45
zm_to_Flm 8900
zm_to_ZM 39753
zvV_equal 225
zv_content 607802
zv_dotproduct 89643355
zv_equal 2115679
zv_equal0 9949245
zv_neg 133552
zv_neg_inplace 110
zv_prod 217032
zv_prod_Z 259400
zv_sum 140
zv_to_Flv 129800
zv_z_mul 3140

Generated by: LCOV version 1.9