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 - ZX.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.8.0 lcov report (development 19044-129ab8a) Lines: 432 458 94.3 %
Date: 2016-06-26 Functions: 54 57 94.7 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 277 315 87.9 %

Function Name Sort by function name Hit count Sort by hit count
RgX_check_QX 0
RgX_check_ZX 17170
RgX_check_ZXX 63
ZXT_remi2n 35910
ZXV_Z_mul 7476
ZXV_dotproduct 82138
ZXV_equal 35
ZXV_remi2n 0
ZXX_Z_add_shallow 42
ZXX_Z_divexact 52920
ZXX_Z_mul 2058
ZXX_max_lg 469
ZXX_renormalize 166317288
ZXX_to_Kronecker 596407
ZXX_to_Kronecker_spec 1410235
ZX_Z_add 66010
ZX_Z_add_shallow 9271
ZX_Z_divexact 1889513
ZX_Z_mul 7010674
ZX_Z_sub 34342
ZX_add 7339289
ZX_copy 130724
ZX_deriv 1551486
ZX_div_by_X_1 21
ZX_equal 521826
ZX_eval1 4718
ZX_eval2BILspec 109471141
ZX_expispec 113010755
ZX_max_lg 5873
ZX_mod_Xnm1 1483099
ZX_mul 75601040
ZX_mulspec 77192188
ZX_mulspec_mulii 53859573
ZX_mulu 119294
ZX_neg 4220
ZX_rem 143829
ZX_remi2n 93229
ZX_rescale 10485
ZX_rescale2n 23725
ZX_rescale_lt 0
ZX_shifti 176513
ZX_sqr 5570030
ZX_sqrspec 5570056
ZX_sqrspec_basecase 3536884
ZX_sqrspec_basecase_limb 33517112
ZX_sqrspec_sqri 1752071
ZX_sub 388856
ZX_val 16459
ZX_valrem 8844101
ZX_valspec 152928693
Z_ZX_mulshiftspec 19823074
Z_ZX_sub 310249
Z_mod2BIL_ZX 55611655
Z_sqrshiftspec_ZX 274319
scalar_ZX 20061
scalar_ZX_shallow 17052
zx_to_ZX 1764

Generated by: LCOV version 1.9