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.10.0 lcov report (development 20422-b487f4d) Lines: 433 458 94.5 %
Date: 2017-03-22 05:51:54 Functions: 55 57 96.5 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
RgX_check_QX 99652
RgX_check_ZX 601763
RgX_check_ZXX 63
ZXT_remi2n 35726
ZXV_Z_mul 7476
ZXV_dotproduct 82789
ZXV_equal 35
ZXV_remi2n 0
ZXX_Z_add_shallow 56
ZXX_Z_divexact 52962
ZXX_Z_mul 2058
ZXX_max_lg 630
ZXX_renormalize 162969497
ZXX_to_Kronecker 443594
ZXX_to_Kronecker_spec 1212988
ZX_Z_add 66095
ZX_Z_add_shallow 9322
ZX_Z_divexact 2166438
ZX_Z_mul 7616468
ZX_Z_sub 34489
ZX_add 8265910
ZX_copy 108278
ZX_deriv 1457137
ZX_div_by_X_1 21
ZX_equal 380142
ZX_eval1 4718
ZX_eval2BILspec 108706785
ZX_expispec 112047350
ZX_max_lg 7685774
ZX_mod_Xnm1 1483080
ZX_mul 75143791
ZX_mulspec 76726281
ZX_mulspec_mulii 53513246
ZX_mulu 120120
ZX_neg 4710
ZX_rem 175560
ZX_remi2n 92986
ZX_rescale 11043
ZX_rescale2n 129857
ZX_rescale_lt 0
ZX_shifti 176274
ZX_sqr 5258691
ZX_sqrspec 5258698
ZX_sqrspec_basecase 3337097
ZX_sqrspec_basecase_limb 32899899
ZX_sqrspec_sqri 1680374
ZX_sub 538319
ZX_val 16886
ZX_valrem 8655466
ZX_valspec 152808223
Z_ZX_mulshiftspec 20264646
Z_ZX_sub 422235
Z_mod2BIL_ZX 55193494
Z_sqrshiftspec_ZX 234802
scalar_ZX 19956
scalar_ZX_shallow 17182
zx_to_ZX 287

Generated by: LCOV version 1.11