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 16962-5a32637) Lines: 557 610 91.3 %
Date: 2014-10-29 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 7130027
RgM_check_ZM 8638
RgV_check_ZV 428128
ZC_ZV_mul 0
ZC_Z_add 62300
ZC_Z_divexact 248514
ZC_Z_mul 2166688
ZC_Z_sub 0
ZC_add 748041
ZC_add_i 753851
ZC_copy 423344
ZC_hnfremdiv 782896
ZC_lincomb 6514910
ZC_lincomb1 2215655
ZC_lincomb1_inplace 30922384
ZC_lincomb_1 313918
ZC_neg 1101471
ZC_reducemodlll 181129
ZC_reducemodmatrix 181157
ZC_reducemodmatrix_i 181157
ZC_sub 954836
ZC_sub_i 1001368
ZC_z_mul 12229
ZMV_to_zmV 0
ZM_ZC_mul 3325696
ZM_ZC_mul_i 8619196
ZM_Z_divexact 32818
ZM_Z_mul 23321
ZM_add 3019
ZM_copy 26204
ZM_det_triangular 569802
ZM_equal 359852
ZM_hnfdivrem 27825
ZM_ishnf 49532
ZM_isidentity 85794
ZM_max_lg 546
ZM_mul 1347142
ZM_multosym 0
ZM_nc_mul_i 3262
ZM_neg 5334
ZM_nm_mul 261
ZM_pow 0
ZM_powu 30926
ZM_reducemodlll 0
ZM_reducemodmatrix 4431
ZM_reducemodmatrix_i 4431
ZM_sqr 42
ZM_sub 9625
ZM_supnorm 168
ZM_to_zm 238
ZM_togglesign 0
ZM_transmul 497
ZM_transmultosym 158088
ZM_zc_mul 967459
ZM_zc_mul_i 1069991
ZM_zm_mul 40101
ZMrow_ZC_mul 8655444
ZMrow_ZC_mul_i 52062092
ZRED 523510
ZV_ZM_mul 3304
ZV_abscmp 3326
ZV_cmp 395323
ZV_content 2898
ZV_dotproduct 8887894
ZV_dotproduct_i 10996601
ZV_dotsquare 3736593
ZV_equal 7762812
ZV_equal0 279673
ZV_equal_lg 8877448
ZV_max_lg 10612
ZV_neg_inplace 57114
ZV_prod 20962
ZV_sum 56
ZV_to_nv 525
ZV_togglesign 859594
ZV_zc_mul 0
ZincrementalGS 700656
Zupdate_row 164007
_ZM_mul 217
_ZM_sqr 31990
check_ZV 31584
nm_Z_mul 261
zmV_to_ZMV 63
zm_to_Flm 12460
zm_to_ZM 54976
zvV_equal 315
zv_content 525347
zv_dotproduct 125500697
zv_equal 2954822
zv_equal0 13928922
zv_neg 186163
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