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 17710-c8a39c8) Lines: 578 631 91.6 %
Date: 2015-03-31 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 432657
ZC_ZV_mul 0
ZC_Z_add 69811
ZC_Z_divexact 1417321
ZC_Z_mul 2449721
ZC_Z_sub 0
ZC_add 1034503
ZC_add_i 1818866
ZC_copy 629881
ZC_hnfremdiv 803833
ZC_is_ei 23247
ZC_lincomb 7381225
ZC_lincomb1 2352160
ZC_lincomb1_inplace 35069414
ZC_lincomb_1 371001
ZC_neg 1239288
ZC_reducemodlll 186641
ZC_reducemodmatrix 187236
ZC_reducemodmatrix_i 187236
ZC_sub 1018846
ZC_sub_i 1071314
ZC_z_mul 13153
ZMV_to_zmV 0
ZM_ZC_mul 3695195
ZM_ZC_mul_i 10144744
ZM_Z_div 1883
ZM_Z_divexact 76987
ZM_Z_mul 62185
ZM_add 37020
ZM_copy 41152
ZM_det_triangular 583648
ZM_equal 381973
ZM_hnfdivrem 29382
ZM_ishnf 52113
ZM_isidentity 93620
ZM_max_lg 1498
ZM_mul 1452544
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 20688530
ZMrow_ZC_mul_i 94725277
ZRED 542261
ZV_ZM_mul 3304
ZV_abscmp 3480
ZV_cmp 720476
ZV_content 2912
ZV_dotproduct 10044482
ZV_dotproduct_i 11902174
ZV_dotsquare 4043431
ZV_equal 7768101
ZV_equal0 316598
ZV_equal_lg 8970436
ZV_max_lg 10612
ZV_neg_inplace 57608
ZV_prod 21473
ZV_sum 56
ZV_to_nv 532
ZV_togglesign 892447
ZV_zc_mul 0
ZincrementalGS 725164
Zupdate_row 172929
_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 3209375
zv_equal0 13929006
zv_neg 187594
zv_neg_inplace 214
zv_prod 304273
zv_prod_Z 363728
zv_sum 196
zv_to_Flv 181720
zv_z_mul 4360

Generated by: LCOV version 1.9