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 20777-d2a9243) Lines: 509 541 94.1 %
Date: 2017-06-25 05:59:24 Functions: 69 72 95.8 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
FqM_mul_Kronecker 320
RgX_check_QX 104776
RgX_check_ZX 618689
RgX_check_ZXX 63
ZC_mod2BIL_FqC 925
ZC_mod2BIL_ZXQC 4310
ZM_mod2BIL_FqM 320
ZM_mod2BIL_ZXQM 1305
ZXC_eval2BIL 13582
ZXC_expi 13582
ZXM_eval2BIL 3250
ZXM_expi 3250
ZXQM_mul 1305
ZXQM_sqr 0
ZXT_remi2n 46493
ZXV_Z_mul 7476
ZXV_dotproduct 82733
ZXV_equal 35
ZXV_remi2n 0
ZXX_Z_add_shallow 56
ZXX_Z_divexact 52962
ZXX_Z_mul 2058
ZXX_max_lg 840
ZXX_renormalize 164472305
ZXX_to_Kronecker 451518
ZXX_to_Kronecker_spec 1224944
ZX_Z_add 71763
ZX_Z_add_shallow 9992
ZX_Z_divexact 2200331
ZX_Z_mul 7664907
ZX_Z_sub 34447
ZX_add 8355327
ZX_copy 289947
ZX_deriv 1492132
ZX_div_by_X_1 21
ZX_equal 394876
ZX_eval1 4718
ZX_eval2BIL 279276
ZX_eval2BILspec 109499621
ZX_expi 279276
ZX_expispec 113636404
ZX_max_lg 7715689
ZX_mod_Xnm1 1865187
ZX_mul 77972360
ZX_mulspec 79568459
ZX_mulspec_mulii 53821248
ZX_mulu 119924
ZX_neg 4710
ZX_rem 447107
ZX_remi2n 107336
ZX_rescale 11043
ZX_rescale2n 136136
ZX_rescale_lt 0
ZX_shifti 193607
ZX_sqr 6093561
ZX_sqrspec 6093535
ZX_sqrspec_basecase 4130500
ZX_sqrspec_basecase_limb 47417336
ZX_sqrspec_sqri 1699707
ZX_sub 558300
ZX_val 23907
ZX_valrem 8699735
ZX_valspec 155406159
Z_ZX_mulshiftspec 20841814
Z_ZX_sub 433516
Z_mod2BIL_Fq 3391
Z_mod2BIL_ZX 55636320
Z_mod2BIL_ZXQ 111241
Z_sqrshiftspec_ZX 249457
scalar_ZX 19956
scalar_ZX_shallow 17149
zx_to_ZX 287

Generated by: LCOV version 1.11