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 17953-c39f2e6) Lines: 682 767 88.9 %
Date: 2015-08-30 Functions: 98 106 92.5 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 436 542 80.4 %

Function Name Sort by function name Hit count Sort by hit count
Flc_lincomb1_inplace 7368147
RgM_check_ZM 9051
RgV_check_ZV 432655
ZC_ZV_mul 0
ZC_Z_add 69811
ZC_Z_divexact 1418130
ZC_Z_mul 2450360
ZC_Z_sub 0
ZC_add 1034412
ZC_add_i 1818776
ZC_copy 635730
ZC_hnfremdiv 804514
ZC_is_ei 23247
ZC_lincomb 7380030
ZC_lincomb1 2351912
ZC_lincomb1_inplace 35120813
ZC_lincomb_1 371015
ZC_neg 1239752
ZC_reducemodlll 186624
ZC_reducemodmatrix 187219
ZC_reducemodmatrix_i 187219
ZC_sub 1019101
ZC_sub_i 1071697
ZC_z_mul 13153
ZMV_to_zmV 0
ZM_ZC_mul 3695031
ZM_ZC_mul_i 12088686
ZM_Z_div 1883
ZM_Z_divexact 76988
ZM_Z_mul 62185
ZM_add 37021
ZM_copy 41869
ZM_det_triangular 585051
ZM_equal 381934
ZM_hnfdivrem 30057
ZM_ishnf 52795
ZM_isidentity 93711
ZM_max_lg 1505
ZM_mul 1529066
ZM_mul_classical 1618435
ZM_mul_i 1595363
ZM_mul_sw 9814
ZM_multosym 0
ZM_nc_mul_i 3749
ZM_neg 7357
ZM_nm_mul 282
ZM_pow 0
ZM_powu 31339
ZM_reducemodlll 0
ZM_reducemodmatrix 4641
ZM_reducemodmatrix_i 4641
ZM_sqr 32886
ZM_sqr_i 32886
ZM_sub 10661
ZM_supnorm 854
ZM_to_zm 238
ZM_togglesign 0
ZM_transmul 497
ZM_transmultosym 158361
ZM_zc_mul 1378478
ZM_zc_mul_i 1491613
ZM_zm_mul 44735
ZMrow_ZC_mul 20687874
ZMrow_ZC_mul_i 119865362
ZRED 542165
ZV_ZM_mul 3318
ZV_abscmp 3480
ZV_cmp 413851
ZV_content 2919
ZV_dotproduct 10046429
ZV_dotproduct_i 11912234
ZV_dotsquare 4044084
ZV_equal 7768078
ZV_equal0 318455
ZV_equal_lg 8970278
ZV_max_lg 10612
ZV_neg_inplace 57626
ZV_prod 32384
ZV_sum 56
ZV_to_nv 1925
ZV_togglesign 910207
ZV_zc_mul 0
ZincrementalGS 725051
Zupdate_row 173023
_ZM_mul 217
_ZM_sqr 32795
_mulii 938115
add_slices 78512
check_ZV 32431
nm_Z_mul 282
subtract_slices 68698
zmV_to_ZMV 63
zm_to_Flm 12460
zm_to_ZM 63936
zvV_equal 315
zv_content 858596
zv_dotproduct 125500697
zv_equal 3465882
zv_equal0 13929013
zv_neg 187594
zv_neg_inplace 214
zv_prod 350835
zv_prod_Z 365114
zv_sum 1582
zv_to_Flv 181720
zv_z_mul 4360

Generated by: LCOV version 1.9