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 16937-4bd9b4e) Lines: 557 610 91.3 %
Date: 2014-10-24 Functions: 89 97 91.8 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 368 438 84.0 %

Function Name Sort by function name Hit count Sort by hit count
Flc_lincomb1_inplace 7130072
RgM_check_ZM 8638
RgV_check_ZV 426123
ZC_ZV_mul 0
ZC_Z_add 62300
ZC_Z_divexact 248504
ZC_Z_mul 2165909
ZC_Z_sub 0
ZC_add 738013
ZC_add_i 743799
ZC_copy 422948
ZC_hnfremdiv 781976
ZC_lincomb 6499859
ZC_lincomb1 2215918
ZC_lincomb1_inplace 30940471
ZC_lincomb_1 318211
ZC_neg 1119638
ZC_reducemodlll 181350
ZC_reducemodmatrix 181378
ZC_reducemodmatrix_i 181378
ZC_sub 937016
ZC_sub_i 983524
ZC_z_mul 12229
ZMV_to_zmV 0
ZM_ZC_mul 3310336
ZM_ZC_mul_i 8598287
ZM_Z_divexact 32810
ZM_Z_mul 23356
ZM_add 3011
ZM_copy 26204
ZM_det_triangular 561450
ZM_equal 356596
ZM_hnfdivrem 27832
ZM_ishnf 49560
ZM_isidentity 85980
ZM_max_lg 546
ZM_mul 1343506
ZM_multosym 0
ZM_nc_mul_i 3238
ZM_neg 5334
ZM_nm_mul 253
ZM_pow 0
ZM_powu 30926
ZM_reducemodlll 0
ZM_reducemodmatrix 4431
ZM_reducemodmatrix_i 4431
ZM_sqr 28
ZM_sub 9617
ZM_supnorm 154
ZM_to_zm 238
ZM_togglesign 0
ZM_transmul 497
ZM_transmultosym 158088
ZM_zc_mul 964198
ZM_zc_mul_i 1066156
ZM_zm_mul 39814
ZMrow_ZC_mul 8629215
ZMrow_ZC_mul_i 51995550
ZRED 523952
ZV_ZM_mul 3311
ZV_abscmp 3326
ZV_cmp 392146
ZV_content 2898
ZV_dotproduct 8829878
ZV_dotproduct_i 10944084
ZV_dotsquare 3724559
ZV_equal 7762733
ZV_equal0 279147
ZV_equal_lg 8870856
ZV_max_lg 10612
ZV_neg_inplace 57120
ZV_prod 20969
ZV_sum 56
ZV_to_nv 525
ZV_togglesign 858642
ZV_zc_mul 0
ZincrementalGS 701319
Zupdate_row 168119
_ZM_mul 217
_ZM_sqr 31990
check_ZV 31584
nm_Z_mul 253
zmV_to_ZMV 63
zm_to_Flm 12460
zm_to_ZM 54822
zvV_equal 315
zv_content 525347
zv_dotproduct 125500697
zv_equal 2954913
zv_equal0 13928922
zv_neg 182874
zv_neg_inplace 154
zv_prod 289380
zv_prod_Z 363160
zv_sum 196
zv_to_Flv 181720
zv_z_mul 4396

Generated by: LCOV version 1.9