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 17234-4181bc5) Lines: 576 629 91.6 %
Date: 2014-12-18 Functions: 91 99 91.9 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 381 454 83.9 %

Function Name Sort by function name Hit count Sort by hit count
Flc_lincomb1_inplace 7373724
RgM_check_ZM 8960
RgV_check_ZV 432480
ZC_ZV_mul 0
ZC_Z_add 69538
ZC_Z_divexact 548360
ZC_Z_mul 2445740
ZC_Z_sub 0
ZC_add 1033316
ZC_add_i 1348026
ZC_copy 638264
ZC_hnfremdiv 804133
ZC_is_ei 8386
ZC_lincomb 7361934
ZC_lincomb1 2344541
ZC_lincomb1_inplace 34919818
ZC_lincomb_1 370070
ZC_neg 1233572
ZC_reducemodlll 186036
ZC_reducemodmatrix 186421
ZC_reducemodmatrix_i 186421
ZC_sub 1017635
ZC_sub_i 1069597
ZC_z_mul 12789
ZMV_to_zmV 0
ZM_ZC_mul 3687401
ZM_ZC_mul_i 9439353
ZM_Z_div 1547
ZM_Z_divexact 47967
ZM_Z_mul 46659
ZM_add 22119
ZM_copy 42021
ZM_det_triangular 583396
ZM_equal 381528
ZM_hnfdivrem 29277
ZM_ishnf 51686
ZM_isidentity 90589
ZM_max_lg 1470
ZM_mul 1421523
ZM_multosym 0
ZM_nc_mul_i 3270
ZM_neg 6587
ZM_nm_mul 262
ZM_pow 0
ZM_powu 31332
ZM_reducemodlll 0
ZM_reducemodmatrix 4627
ZM_reducemodmatrix_i 4627
ZM_sqr 42
ZM_sub 10573
ZM_supnorm 525
ZM_to_zm 238
ZM_togglesign 0
ZM_transmul 497
ZM_transmultosym 158088
ZM_zc_mul 1377260
ZM_zc_mul_i 1482736
ZM_zm_mul 40915
ZMrow_ZC_mul 20677850
ZMrow_ZC_mul_i 70478507
ZRED 540562
ZV_ZM_mul 3304
ZV_abscmp 3466
ZV_cmp 714933
ZV_content 2912
ZV_dotproduct 10014312
ZV_dotproduct_i 11879582
ZV_dotsquare 4033401
ZV_equal 7768208
ZV_equal0 312604
ZV_equal_lg 8969078
ZV_max_lg 10612
ZV_neg_inplace 57717
ZV_prod 21298
ZV_sum 56
ZV_to_nv 532
ZV_togglesign 893963
ZV_zc_mul 0
ZincrementalGS 722552
Zupdate_row 172406
_ZM_mul 217
_ZM_sqr 32788
check_ZV 32228
nm_Z_mul 262
zmV_to_ZMV 63
zm_to_Flm 12460
zm_to_ZM 55874
zvV_equal 315
zv_content 857518
zv_dotproduct 125500697
zv_equal 2962411
zv_equal0 13928992
zv_neg 187446
zv_neg_inplace 154
zv_prod 304028
zv_prod_Z 363160
zv_sum 196
zv_to_Flv 181720
zv_z_mul 4396

Generated by: LCOV version 1.9