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 17931-6d987be) Lines: 682 767 88.9 %
Date: 2015-07-29 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 7365973
RgM_check_ZM 9051
RgV_check_ZV 432655
ZC_ZV_mul 0
ZC_Z_add 69811
ZC_Z_divexact 1417455
ZC_Z_mul 2450360
ZC_Z_sub 0
ZC_add 1034412
ZC_add_i 1818776
ZC_copy 630025
ZC_hnfremdiv 803839
ZC_is_ei 23247
ZC_lincomb 7379846
ZC_lincomb1 2351870
ZC_lincomb1_inplace 35071755
ZC_lincomb_1 371015
ZC_neg 1239752
ZC_reducemodlll 186624
ZC_reducemodmatrix 187219
ZC_reducemodmatrix_i 187219
ZC_sub 1019001
ZC_sub_i 1071498
ZC_z_mul 13153
ZMV_to_zmV 0
ZM_ZC_mul 3695031
ZM_ZC_mul_i 12080631
ZM_Z_div 1883
ZM_Z_divexact 76988
ZM_Z_mul 62185
ZM_add 37021
ZM_copy 41167
ZM_det_triangular 583690
ZM_equal 381934
ZM_hnfdivrem 29389
ZM_ishnf 52127
ZM_isidentity 93711
ZM_max_lg 1505
ZM_mul 1527052
ZM_mul_classical 1616421
ZM_mul_i 1593349
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 10628
ZM_supnorm 854
ZM_to_zm 238
ZM_togglesign 0
ZM_transmul 497
ZM_transmultosym 158361
ZM_zc_mul 1378478
ZM_zc_mul_i 1491514
ZM_zm_mul 44702
ZMrow_ZC_mul 20687874
ZMrow_ZC_mul_i 119847881
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 7768101
ZV_equal0 316769
ZV_equal_lg 8970301
ZV_max_lg 10612
ZV_neg_inplace 57626
ZV_prod 32384
ZV_sum 56
ZV_to_nv 1932
ZV_togglesign 892884
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 63903
zvV_equal 315
zv_content 858596
zv_dotproduct 125500697
zv_equal 3499222
zv_equal0 13929013
zv_neg 187594
zv_neg_inplace 214
zv_prod 304301
zv_prod_Z 365114
zv_sum 1582
zv_to_Flv 181720
zv_z_mul 4360

Generated by: LCOV version 1.9