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 23499-f2b23893a) Lines: 558 595 93.8 %
Date: 2019-01-22 05:42:35 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 4571
QXQM_sqr 7
QX_ZX_rem 1214681
QX_mul 1698225
QX_sqr 45054
RgX_check_QX 243719
RgX_check_ZX 634495
RgX_check_ZXX 42
ZC_mod2BIL_FqC 193502
ZC_mod2BIL_ZXQC 26712
ZM_mod2BIL_FqM 57195
ZM_mod2BIL_ZXQM 8476
ZXC_eval2BIL 704309
ZXC_expi 704309
ZXM_eval2BIL 131202
ZXM_expi 131202
ZXQM_mul 8336
ZXQM_sqr 140
ZXQX_mul 0
ZXQX_sqr 0
ZXT_remi2n 39068
ZXV_Z_mul 7476
ZXV_dotproduct 82873
ZXV_equal 35
ZXV_remi2n 0
ZXX_Z_add_shallow 56
ZXX_Z_divexact 53067
ZXX_Z_mul 2163
ZXX_max_lg 2275
ZXX_renormalize 126433102
ZXX_to_Kronecker 750728
ZXX_to_Kronecker_spec 1815628
ZX_Z_add 93253
ZX_Z_add_shallow 10556
ZX_Z_divexact 2463314
ZX_Z_mul 8907819
ZX_Z_sub 34559
ZX_add 9210793
ZX_copy 4788994
ZX_deriv 1990797
ZX_div_by_X_1 21
ZX_equal 1520011
ZX_eval1 4718
ZX_eval2BIL 4716531
ZX_eval2BILspec 52302147
ZX_expi 4716531
ZX_expispec 56449450
ZX_max_lg 20000769
ZX_mod_Xnm1 1481481
ZX_mul 58558813
ZX_mulspec 59778657
ZX_mulspec_mulii 24243508
ZX_mulu 120491
ZX_neg 207053
ZX_rem 7365993
ZX_remi2n 97446
ZX_rescale 11897
ZX_rescale2n 146857
ZX_rescale_lt 0
ZX_shifti 181711
ZX_sqr 7122850
ZX_sqrspec 7124670
ZX_sqrspec_basecase 4144715
ZX_sqrspec_basecase_limb 38419040
ZX_sqrspec_sqri 2476707
ZX_sub 589304
ZX_val 29677
ZX_valrem 21215587
ZX_valspec 105650509
ZXn_mul 2091047
ZXn_sqr 2044
Z_ZX_mulshiftspec 25028377
Z_ZX_sub 459794
Z_mod2BIL_Fq 737278
Z_mod2BIL_ZX 28119387
Z_mod2BIL_ZXQ 661285
Z_sqrshiftspec_ZX 486368
scalar_ZX 67302
scalar_ZX_shallow 19127
zx_to_ZX 294

Generated by: LCOV version 1.13