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.12.0 lcov report (development 22931-a5c6f641e) Lines: 558 595 93.8 %
Date: 2018-08-17 05:36:45 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 1216018
QX_mul 1098829
QX_sqr 36444
RgX_check_QX 242921
RgX_check_ZX 624534
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 38930
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 119843773
ZXX_to_Kronecker 698305
ZXX_to_Kronecker_spec 1757535
ZX_Z_add 93177
ZX_Z_add_shallow 10188
ZX_Z_divexact 2442281
ZX_Z_mul 8295772
ZX_Z_sub 34447
ZX_add 9158999
ZX_copy 3865388
ZX_deriv 1841797
ZX_div_by_X_1 21
ZX_equal 1504989
ZX_eval1 4718
ZX_eval2BIL 4042523
ZX_eval2BILspec 51736768
ZX_expi 4042523
ZX_expispec 55899436
ZX_max_lg 7751395
ZX_mod_Xnm1 1480173
ZX_mul 49188211
ZX_mulspec 50398870
ZX_mulspec_mulii 24095416
ZX_mulu 119931
ZX_neg 207053
ZX_rem 6311498
ZX_remi2n 97253
ZX_rescale 11869
ZX_rescale2n 142476
ZX_rescale_lt 0
ZX_shifti 181427
ZX_sqr 7104331
ZX_sqrspec 7104975
ZX_sqrspec_basecase 4144467
ZX_sqrspec_basecase_limb 38463692
ZX_sqrspec_sqri 2469653
ZX_sub 583153
ZX_val 26240
ZX_valrem 8806513
ZX_valspec 100821279
ZXn_mul 2091040
ZXn_sqr 2044
Z_ZX_mulshiftspec 22771113
Z_ZX_sub 448900
Z_mod2BIL_Fq 737278
Z_mod2BIL_ZX 27771088
Z_mod2BIL_ZXQ 468238
Z_sqrshiftspec_ZX 474004
scalar_ZX 64411
scalar_ZX_shallow 18981
zx_to_ZX 294

Generated by: LCOV version 1.13