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-bordeaux.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.10.0 lcov report (development 20783-cec4728) Lines: 771 846 91.1 %
Date: 2017-06-28 05:59:20 Functions: 110 116 94.8 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
Flc_lincomb1_inplace 8664401
RgM_check_ZM 187348
RgV_check_ZV 506353
ZC_ZV_mul 0
ZC_Z_add 103430
ZC_Z_div 181951
ZC_Z_divexact 2658751
ZC_Z_mul 10526989
ZC_Z_sub 0
ZC_add 6904499
ZC_add_i 19204099
ZC_copy 4856543
ZC_hnfremdiv 852931
ZC_is_ei 88186
ZC_lincomb 7267963
ZC_lincomb1 1941712
ZC_lincomb1_inplace 32552030
ZC_lincomb_1 253488
ZC_neg 2188699
ZC_reducemodlll 9907
ZC_reducemodmatrix 18706
ZC_reducemodmatrix_i 18706
ZC_sub 1186122
ZC_sub_i 1922588
ZC_z_mul 13678
ZMV_to_zmV 21
ZM_ZC_mul 5402036
ZM_ZC_mul_i 21352406
ZM_Z_div 11396
ZM_Z_divexact 797081
ZM_Z_mul 680526
ZM_add 1165967
ZM_copy 194214
ZM_det_triangular 915005
ZM_diag_mul 88196
ZM_equal 409529
ZM_hnfdivrem 51876
ZM_isdiagonal 59379
ZM_ishnf 113736
ZM_isidentity 289579
ZM_isscalar 25901
ZM_max_lg 1836
ZM_max_lg_i 9447284
ZM_mul 4626971
ZM_mul_classical 4702327
ZM_mul_diag 14
ZM_mul_i 4721177
ZM_mul_sw 21944
ZM_multosym 0
ZM_nc_mul_i 666032
ZM_neg 269493
ZM_nm_mul 636483
ZM_pow 0
ZM_powu 2170
ZM_reducemodlll 0
ZM_reducemodmatrix 21245
ZM_reducemodmatrix_i 21245
ZM_sqr 3094
ZM_sqr_i 3094
ZM_sub 653931
ZM_supnorm 3283
ZM_to_zm 868
ZM_togglesign 0
ZM_transmul 497
ZM_transmultosym 160286
ZM_zc_mul 1613201
ZM_zc_mul_i 2821345
ZM_zm_mul 587759
ZMrow_ZC_mul 25380936
ZMrow_ZC_mul_i 158517496
ZRED 114475
ZV_ZM_mul 67599
ZV_abscmp 3515
ZV_cmp 667938
ZV_content 67921
ZV_dotproduct 8577130
ZV_dotproduct_i 11272610
ZV_dotsquare 3494542
ZV_equal 7927314
ZV_equal0 549950
ZV_equal_lg 9190839
ZV_max_lg 10612
ZV_max_lg_i 34331486
ZV_neg_inplace 70708
ZV_prod 7468175
ZV_sum 56
ZV_to_nv 49896
ZV_togglesign 1301845
ZV_zc_mul 1645
Z_ZC_sub 94341
ZincrementalGS 136737
Zupdate_row 52041
_ZM_mul 280
_ZM_sqr 2604
_mulii 272804201
add_slices 175552
check_ZV 468300
nm_Z_mul 636483
subtract_slices 153608
vecsmall_prod 14694393
zmV_to_ZMV 98
zm_to_Flm 15792
zm_to_ZM 368435
zvV_equal 385
zv_ZM_mul 1309
zv_content 1022369
zv_dotproduct 151102651
zv_equal 22656989
zv_equal0 17350788
zv_neg 23298
zv_neg_inplace 244
zv_prod 340991
zv_prod_Z 365685
zv_sum 1582
zv_to_Flv 223314
zv_z_mul 8199

Generated by: LCOV version 1.11