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 22578-936e9dfa8) Lines: 552 587 94.0 %
Date: 2018-05-22 05:32:44 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 1212826
QX_mul 1093971
QX_sqr 36038
RgX_check_QX 242284
RgX_check_ZX 624191
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 39001
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 2233
ZXX_renormalize 116196317
ZXX_to_Kronecker 690203
ZXX_to_Kronecker_spec 1750265
ZX_Z_add 93214
ZX_Z_add_shallow 10162
ZX_Z_divexact 2441623
ZX_Z_mul 8294390
ZX_Z_sub 34447
ZX_add 9155076
ZX_copy 3852796
ZX_deriv 1839029
ZX_div_by_X_1 21
ZX_equal 1498570
ZX_eval1 4718
ZX_eval2BIL 4042523
ZX_eval2BILspec 52257506
ZX_expi 4042523
ZX_expispec 56409916
ZX_max_lg 7749360
ZX_mod_Xnm1 1480621
ZX_mul 49236717
ZX_mulspec 50488990
ZX_mulspec_mulii 24362751
ZX_mulu 119931
ZX_neg 207053
ZX_rem 6284948
ZX_remi2n 97347
ZX_rescale 11841
ZX_rescale2n 142175
ZX_rescale_lt 0
ZX_shifti 181548
ZX_sqr 7084570
ZX_sqrspec 7085016
ZX_sqrspec_basecase 4149238
ZX_sqrspec_basecase_limb 38424140
ZX_sqrspec_sqri 2456620
ZX_sub 582382
ZX_val 26149
ZX_valrem 8803430
ZX_valspec 100995074
ZXn_mul 4130
ZXn_sqr 2044
Z_ZX_mulshiftspec 22600412
Z_ZX_sub 447853
Z_mod2BIL_Fq 737278
Z_mod2BIL_ZX 28025816
Z_mod2BIL_ZXQ 468238
Z_sqrshiftspec_ZX 461696
scalar_ZX 64334
scalar_ZX_shallow 18337
zx_to_ZX 294

Generated by: LCOV version 1.13