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-bordeaux1.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.8.0 lcov report (development 17240-4611fa9) Lines: 415 447 92.8 %
Date: 2014-12-21 Functions: 52 56 92.9 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 270 311 86.8 %

Function Name Sort by function name Hit count Sort by hit count
RgX_check_QX 0
RgX_check_ZX 15147
RgX_check_ZXX 63
ZXT_remi2n 14452
ZXV_Z_mul 3780
ZXV_dotproduct 41832
ZXV_equal 35
ZXV_remi2n 0
ZXX_Z_add_shallow 42
ZXX_Z_divexact 30485
ZXX_Z_mul 1645
ZXX_max_lg 462
ZXX_renormalize 154401601
ZXX_to_Kronecker 426136
ZXX_to_Kronecker_spec 888468
ZX_Z_add 31240
ZX_Z_add_shallow 5201
ZX_Z_divexact 1232237
ZX_Z_mul 3671734
ZX_Z_sub 17164
ZX_add 4539123
ZX_copy 88256
ZX_deriv 1336375
ZX_equal 124191
ZX_eval1 4718
ZX_eval2BILspec 113741114
ZX_expispec 115770113
ZX_max_lg 5292
ZX_mod_Xnm1 1187039
ZX_mul 78082448
ZX_mulspec 78352049
ZX_mulspec_mulii 56266412
ZX_mulu 60214
ZX_neg 3559
ZX_rem 129948
ZX_remi2n 42056
ZX_rescale 9974
ZX_rescale2n 20995
ZX_rescale_lt 0
ZX_shifti 82710
ZX_sqr 3398437
ZX_sqrspec 3398437
ZX_sqrspec_basecase 2028999
ZX_sqrspec_basecase_limb 20232753
ZX_sqrspec_sqri 1208290
ZX_sub 262664
ZX_val 11450
ZX_valrem 8577774
ZX_valspec 153544319
Z_ZX_mulshiftspec 18808762
Z_ZX_sub 301525
Z_mod2BIL_ZX 57474702
Z_sqrshiftspec_ZX 156682
scalar_ZX 14405
scalar_ZX_shallow 12807
zx_to_ZX 0

Generated by: LCOV version 1.9