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 21913-852521c) Lines: 552 587 94.0 %
Date: 2018-02-19 06:15:51 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 453
QXQM_mul 3787
QXQM_sqr 7
QX_ZX_rem 1047115
QX_mul 1014070
QX_sqr 35827
RgX_check_QX 108129
RgX_check_ZX 622686
RgX_check_ZXX 42
ZC_mod2BIL_FqC 2871
ZC_mod2BIL_ZXQC 18293
ZM_mod2BIL_FqM 453
ZM_mod2BIL_ZXQM 6526
ZXC_eval2BIL 92333
ZXC_expi 92333
ZXM_eval2BIL 13818
ZXM_expi 13818
ZXQM_mul 6386
ZXQM_sqr 140
ZXQX_mul 0
ZXQX_sqr 0
ZXT_remi2n 46815
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 2177
ZXX_renormalize 108684695
ZXX_to_Kronecker 693618
ZXX_to_Kronecker_spec 1754586
ZX_Z_add 98841
ZX_Z_add_shallow 10099
ZX_Z_divexact 2223429
ZX_Z_mul 7946253
ZX_Z_sub 34447
ZX_add 9073640
ZX_copy 3322220
ZX_deriv 1532902
ZX_div_by_X_1 21
ZX_equal 426501
ZX_eval1 4718
ZX_eval2BIL 1448370
ZX_eval2BILspec 51661852
ZX_expi 1448370
ZX_expispec 56125751
ZX_max_lg 7745291
ZX_mod_Xnm1 1865245
ZX_mul 48964794
ZX_mulspec 50222308
ZX_mulspec_mulii 24332697
ZX_mulu 119931
ZX_neg 206563
ZX_rem 6124612
ZX_remi2n 107770
ZX_rescale 11764
ZX_rescale2n 137641
ZX_rescale_lt 0
ZX_shifti 194138
ZX_sqr 7352345
ZX_sqrspec 7352678
ZX_sqrspec_basecase 4453702
ZX_sqrspec_basecase_limb 49952803
ZX_sqrspec_sqri 2429728
ZX_sub 575854
ZX_val 25046
ZX_valrem 8738285
ZX_valspec 100781004
ZXn_mul 2067
ZXn_sqr 1736
Z_ZX_mulshiftspec 22388198
Z_ZX_sub 445886
Z_mod2BIL_Fq 41303
Z_mod2BIL_ZX 27195138
Z_mod2BIL_ZXQ 390868
Z_sqrshiftspec_ZX 455489
scalar_ZX 64590
scalar_ZX_shallow 17609
zx_to_ZX 294

Generated by: LCOV version 1.11