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 17400-bace02f) Lines: 576 629 91.6 %
Date: 2015-01-26 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 7373180
RgM_check_ZM 9030
RgV_check_ZV 432634
ZC_ZV_mul 0
ZC_Z_add 69769
ZC_Z_divexact 606203
ZC_Z_mul 2450010
ZC_Z_sub 0
ZC_add 1034016
ZC_add_i 1395754
ZC_copy 672179
ZC_hnfremdiv 804672
ZC_is_ei 10808
ZC_lincomb 7369515
ZC_lincomb1 2345997
ZC_lincomb1_inplace 34940674
ZC_lincomb_1 370504
ZC_neg 1238781
ZC_reducemodlll 186330
ZC_reducemodmatrix 186792
ZC_reducemodmatrix_i 186792
ZC_sub 1018734
ZC_sub_i 1071202
ZC_z_mul 12929
ZMV_to_zmV 0
ZM_ZC_mul 3692525
ZM_ZC_mul_i 9462593
ZM_Z_div 2072
ZM_Z_divexact 52459
ZM_Z_mul 51013
ZM_add 26023
ZM_copy 45269
ZM_det_triangular 583648
ZM_equal 381836
ZM_hnfdivrem 29389
ZM_ishnf 51959
ZM_isidentity 90932
ZM_max_lg 1484
ZM_mul 1425499
ZM_multosym 0
ZM_nc_mul_i 3748
ZM_neg 6748
ZM_nm_mul 281
ZM_pow 0
ZM_powu 31332
ZM_reducemodlll 0
ZM_reducemodmatrix 4641
ZM_reducemodmatrix_i 4641
ZM_sqr 56
ZM_sub 10620
ZM_supnorm 651
ZM_to_zm 238
ZM_togglesign 0
ZM_transmul 497
ZM_transmultosym 158088
ZM_zc_mul 1378436
ZM_zc_mul_i 1494356
ZM_zm_mul 46151
ZMrow_ZC_mul 20687902
ZMrow_ZC_mul_i 70808410
ZRED 541367
ZV_ZM_mul 3304
ZV_abscmp 3480
ZV_cmp 718188
ZV_content 2912
ZV_dotproduct 10035508
ZV_dotproduct_i 11895941
ZV_dotsquare 4039820
ZV_equal 7768229
ZV_equal0 315789
ZV_equal_lg 8970100
ZV_max_lg 10612
ZV_neg_inplace 57661
ZV_prod 21368
ZV_sum 56
ZV_to_nv 539
ZV_togglesign 892297
ZV_zc_mul 0
ZincrementalGS 723742
Zupdate_row 172609
_ZM_mul 217
_ZM_sqr 32788
check_ZV 32361
nm_Z_mul 281
zmV_to_ZMV 63
zm_to_Flm 12460
zm_to_ZM 63714
zvV_equal 315
zv_content 858575
zv_dotproduct 125500697
zv_equal 2962348
zv_equal0 13929006
zv_neg 187467
zv_neg_inplace 154
zv_prod 304042
zv_prod_Z 363706
zv_sum 196
zv_to_Flv 181720
zv_z_mul 4396

Generated by: LCOV version 1.9