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 to exceed 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.12.0 lcov report (development 23165-e045c667d) Lines: 558 595 93.8 %
Date: 2018-10-18 05:38:09 Functions: 77 81 95.1 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
FqM_mul_Kronecker 57195
QXQM_mul 4347
QXQM_sqr 7
QX_ZX_rem 1215661
QX_mul 1113165
QX_sqr 36437
RgX_check_QX 242970
RgX_check_ZX 624597
RgX_check_ZXX 42
ZC_mod2BIL_FqC 193502
ZC_mod2BIL_ZXQC 21117
ZM_mod2BIL_FqM 57195
ZM_mod2BIL_ZXQM 7311
ZXC_eval2BIL 681616
ZXC_expi 681616
ZXM_eval2BIL 128872
ZXM_expi 128872
ZXQM_mul 7171
ZXQM_sqr 140
ZXQX_mul 0
ZXQX_sqr 0
ZXT_remi2n 38816
ZXV_Z_mul 7476
ZXV_dotproduct 82733
ZXV_equal 35
ZXV_remi2n 0
ZXX_Z_add_shallow 56
ZXX_Z_divexact 52983
ZXX_Z_mul 2079
ZXX_max_lg 2268
ZXX_renormalize 120155492
ZXX_to_Kronecker 722112
ZXX_to_Kronecker_spec 1788118
ZX_Z_add 93119
ZX_Z_add_shallow 10220
ZX_Z_divexact 2443340
ZX_Z_mul 8375114
ZX_Z_sub 34447
ZX_add 9167822
ZX_copy 3922125
ZX_deriv 1957210
ZX_div_by_X_1 21
ZX_equal 1504990
ZX_eval1 4718
ZX_eval2BIL 4042523
ZX_eval2BILspec 51878467
ZX_expi 4042523
ZX_expispec 56024807
ZX_max_lg 7864276
ZX_mod_Xnm1 1480318
ZX_mul 55212530
ZX_mulspec 56431913
ZX_mulspec_mulii 24166007
ZX_mulu 119931
ZX_neg 207053
ZX_rem 6313500
ZX_remi2n 97106
ZX_rescale 11869
ZX_rescale2n 146288
ZX_rescale_lt 0
ZX_shifti 181253
ZX_sqr 7103538
ZX_sqrspec 7105458
ZX_sqrspec_basecase 4144255
ZX_sqrspec_basecase_limb 38427785
ZX_sqrspec_sqri 2470160
ZX_sub 583740
ZX_val 26261
ZX_valrem 9070273
ZX_valspec 102574839
ZXn_mul 2091047
ZXn_sqr 2044
Z_ZX_mulshiftspec 23577223
Z_ZX_sub 450062
Z_mod2BIL_Fq 737278
Z_mod2BIL_ZX 27842435
Z_mod2BIL_ZXQ 468238
Z_sqrshiftspec_ZX 474047
scalar_ZX 64411
scalar_ZX_shallow 19009
zx_to_ZX 294

Generated by: LCOV version 1.13