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 16791-0d1274a) Lines: 561 610 92.0 %
Date: 2014-09-16 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 5034657
RgM_check_ZM 6325
RgV_check_ZV 305940
ZC_ZV_mul 0
ZC_Z_add 44755
ZC_Z_divexact 178720
ZC_Z_mul 1555151
ZC_Z_sub 0
ZC_add 535962
ZC_add_i 540372
ZC_copy 305363
ZC_hnfremdiv 561664
ZC_lincomb 4674126
ZC_lincomb1 1587121
ZC_lincomb1_inplace 22225717
ZC_lincomb_1 225470
ZC_neg 789741
ZC_reducemodlll 130504
ZC_reducemodmatrix 130539
ZC_reducemodmatrix_i 130539
ZC_sub 684604
ZC_sub_i 718580
ZC_z_mul 8735
ZMV_to_zmV 0
ZM_ZC_mul 2384882
ZM_ZC_mul_i 6176610
ZM_Z_divexact 23438
ZM_Z_mul 16917
ZM_add 2253
ZM_copy 19196
ZM_det_triangular 409236
ZM_equal 257829
ZM_hnfdivrem 20455
ZM_ishnf 36220
ZM_isidentity 61242
ZM_max_lg 410
ZM_mul 967101
ZM_multosym 0
ZM_nc_mul_i 2500
ZM_neg 3925
ZM_nm_mul 173
ZM_pow 35
ZM_powu 22090
ZM_reducemodlll 0
ZM_reducemodmatrix 3185
ZM_reducemodmatrix_i 3185
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 692418
ZM_zc_mul_i 762604
ZM_zm_mul 27068
ZMrow_ZC_mul 6197761
ZMrow_ZC_mul_i 36998064
ZRED 376578
ZV_ZM_mul 2360
ZV_abscmp 2376
ZV_cmp 283276
ZV_content 2070
ZV_dotproduct 7737760
ZV_dotproduct_i 9235882
ZV_dotsquare 2679581
ZV_equal 5544931
ZV_equal0 199549
ZV_equal_lg 6344103
ZV_max_lg 7580
ZV_neg_inplace 40926
ZV_prod 15034
ZV_sum 40
ZV_to_nv 375
ZV_togglesign 617871
ZV_zc_mul 0
ZincrementalGS 504242
Zupdate_row 118275
_ZM_mul 155
_ZM_sqr 22885
check_ZV 22930
nm_Z_mul 173
zmV_to_ZMV 45
zm_to_Flm 8900
zm_to_ZM 39023
zvV_equal 225
zv_content 376707
zv_dotproduct 89643355
zv_equal 1609082
zv_equal0 9949230
zv_neg 133091
zv_neg_inplace 110
zv_prod 206760
zv_prod_Z 259425
zv_sum 145
zv_to_Flv 129800
zv_z_mul 3090

Generated by: LCOV version 1.9