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 - ZX.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.8.0 lcov report (development 17710-c8a39c8) Lines: 432 458 94.3 %
Date: 2015-03-31 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 15560
RgX_check_ZXX 63
ZXT_remi2n 22300
ZXV_Z_mul 3780
ZXV_dotproduct 41832
ZXV_equal 35
ZXV_remi2n 0
ZXX_Z_add_shallow 42
ZXX_Z_divexact 92659
ZXX_Z_mul 2170
ZXX_max_lg 462
ZXX_renormalize 169141356
ZXX_to_Kronecker 434935
ZXX_to_Kronecker_spec 1282029
ZX_Z_add 35401
ZX_Z_add_shallow 5545
ZX_Z_divexact 1933372
ZX_Z_mul 3745788
ZX_Z_sub 17164
ZX_add 4572838
ZX_copy 91210
ZX_deriv 1681882
ZX_div_by_X_1 21
ZX_equal 193901
ZX_eval1 4718
ZX_eval2BILspec 117427827
ZX_expispec 120112028
ZX_max_lg 5348
ZX_mod_Xnm1 1495490
ZX_mul 80004824
ZX_mulspec 80289467
ZX_mulspec_mulii 58060947
ZX_mulu 60214
ZX_neg 3594
ZX_rem 131551
ZX_remi2n 52515
ZX_rescale 10485
ZX_rescale2n 21702
ZX_rescale_lt 0
ZX_shifti 95349
ZX_sqr 4156460
ZX_sqrspec 4156495
ZX_sqrspec_basecase 2681092
ZX_sqrspec_basecase_limb 30313672
ZX_sqrspec_sqri 1306036
ZX_sub 266102
ZX_val 14185
ZX_valrem 8589267
ZX_valspec 158107946
Z_ZX_mulshiftspec 18917119
Z_ZX_sub 301964
Z_mod2BIL_ZX 59366986
Z_sqrshiftspec_ZX 164326
scalar_ZX 14552
scalar_ZX_shallow 13276
zx_to_ZX 91

Generated by: LCOV version 1.9