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 17727-c4b959b) Lines: 578 631 91.6 %
Date: 2015-04-18 Functions: 91 99 91.9 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 383 456 84.0 %

Function Name Sort by function name Hit count Sort by hit count
Flc_lincomb1_inplace 7361931
RgM_check_ZM 9037
RgV_check_ZV 432655
ZC_ZV_mul 0
ZC_Z_add 69811
ZC_Z_divexact 1417321
ZC_Z_mul 2449443
ZC_Z_sub 0
ZC_add 1034514
ZC_add_i 1818877
ZC_copy 629885
ZC_hnfremdiv 803832
ZC_is_ei 23247
ZC_lincomb 7380282
ZC_lincomb1 2352053
ZC_lincomb1_inplace 35064023
ZC_lincomb_1 370903
ZC_neg 1239103
ZC_reducemodlll 186624
ZC_reducemodmatrix 187219
ZC_reducemodmatrix_i 187219
ZC_sub 1018831
ZC_sub_i 1071299
ZC_z_mul 13153
ZMV_to_zmV 0
ZM_ZC_mul 3694856
ZM_ZC_mul_i 10144385
ZM_Z_div 1883
ZM_Z_divexact 76987
ZM_Z_mul 62178
ZM_add 37020
ZM_copy 41153
ZM_det_triangular 583648
ZM_equal 381927
ZM_hnfdivrem 29382
ZM_ishnf 52113
ZM_isidentity 93620
ZM_max_lg 1498
ZM_mul 1452542
ZM_multosym 0
ZM_nc_mul_i 3748
ZM_neg 7350
ZM_nm_mul 281
ZM_pow 0
ZM_powu 31339
ZM_reducemodlll 0
ZM_reducemodmatrix 4641
ZM_reducemodmatrix_i 4641
ZM_sqr 56
ZM_sub 10620
ZM_supnorm 854
ZM_to_zm 238
ZM_togglesign 0
ZM_transmul 497
ZM_transmultosym 158088
ZM_zc_mul 1378471
ZM_zc_mul_i 1491479
ZM_zm_mul 44695
ZMrow_ZC_mul 20688378
ZMrow_ZC_mul_i 94722773
ZRED 542165
ZV_ZM_mul 3304
ZV_abscmp 3480
ZV_cmp 720033
ZV_content 2912
ZV_dotproduct 10043594
ZV_dotproduct_i 11901496
ZV_dotsquare 4043202
ZV_equal 7768101
ZV_equal0 316594
ZV_equal_lg 8970287
ZV_max_lg 10612
ZV_neg_inplace 57612
ZV_prod 21487
ZV_sum 56
ZV_to_nv 532
ZV_togglesign 892437
ZV_zc_mul 0
ZincrementalGS 725051
Zupdate_row 172883
_ZM_mul 217
_ZM_sqr 32795
check_ZV 32368
nm_Z_mul 281
zmV_to_ZMV 63
zm_to_Flm 12460
zm_to_ZM 63896
zvV_equal 315
zv_content 858596
zv_dotproduct 125500697
zv_equal 3209492
zv_equal0 13929006
zv_neg 187594
zv_neg_inplace 214
zv_prod 304301
zv_prod_Z 363728
zv_sum 196
zv_to_Flv 181720
zv_z_mul 4360

Generated by: LCOV version 1.9