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.8.0 lcov report (development 19214-1621e44) Lines: 733 814 90.0 %
Date: 2016-07-26 07:10:39 Functions: 104 111 93.7 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
Flc_lincomb1_inplace 7183793
RgM_check_ZM 12138
RgV_check_ZV 457071
ZC_ZV_mul 0
ZC_Z_add 85470
ZC_Z_divexact 1500496
ZC_Z_mul 2606845
ZC_Z_sub 0
ZC_add 1106152
ZC_add_i 1926785
ZC_copy 959100
ZC_hnfremdiv 888765
ZC_is_ei 37548
ZC_lincomb 8265021
ZC_lincomb1 2495445
ZC_lincomb1_inplace 39640745
ZC_lincomb_1 379850
ZC_neg 1946638
ZC_reducemodlll 279359
ZC_reducemodmatrix 280913
ZC_reducemodmatrix_i 280913
ZC_sub 1089537
ZC_sub_i 1192889
ZC_z_mul 13209
ZMV_to_zmV 21
ZM_ZC_mul 4569186
ZM_ZC_mul_i 18663744
ZM_Z_div 1904
ZM_Z_divexact 79808
ZM_Z_mul 62860
ZM_add 40401
ZM_copy 84703
ZM_det_triangular 740037
ZM_diag_mul 910
ZM_equal 426775
ZM_hnfdivrem 60397
ZM_ishnf 81532
ZM_isidentity 253269
ZM_isscalar 14784
ZM_max_lg 1617
ZM_mul 4166268
ZM_mul_classical 4260754
ZM_mul_diag 14
ZM_mul_i 4238466
ZM_mul_sw 10696
ZM_multosym 0
ZM_nc_mul_i 32773
ZM_neg 228102
ZM_nm_mul 3256
ZM_pow 0
ZM_powu 31066
ZM_reducemodlll 0
ZM_reducemodmatrix 5404
ZM_reducemodmatrix_i 5404
ZM_sqr 32984
ZM_sqr_i 32984
ZM_sub 20081
ZM_supnorm 1274
ZM_to_zm 777
ZM_togglesign 0
ZM_transmul 497
ZM_transmultosym 160265
ZM_zc_mul 1305641
ZM_zc_mul_i 2511354
ZM_zm_mul 586604
ZMrow_ZC_mul 15085202
ZMrow_ZC_mul_i 131605404
ZRED 732176
ZV_ZM_mul 6188
ZV_abscmp 3480
ZV_cmp 609162
ZV_content 9240
ZV_dotproduct 10844921
ZV_dotproduct_i 12362812
ZV_dotsquare 4698153
ZV_equal 7762634
ZV_equal0 462791
ZV_equal_lg 9108509
ZV_max_lg 10612
ZV_neg_inplace 58435
ZV_prod 35929
ZV_sum 56
ZV_to_nv 6104
ZV_togglesign 1798791
ZV_zc_mul 0
Z_ZC_sub 266010
ZincrementalGS 1009414
Zupdate_row 268331
_ZM_mul 217
_ZM_sqr 32522
_mulii 905015
add_slices 85568
check_ZV 36624
nm_Z_mul 3256
subtract_slices 74872
zmV_to_ZMV 98
zm_to_Flm 15792
zm_to_ZM 364662
zvV_equal 343
zv_ZM_mul 1204
zv_content 716818
zv_dotproduct 151007458
zv_equal 21890412
zv_equal0 17346924
zv_neg 213701
zv_neg_inplace 231
zv_prod 291249
zv_prod_Z 365177
zv_sum 1582
zv_to_Flv 223314
zv_z_mul 4361

Generated by: LCOV version 1.11