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 16746-c2cb716) Lines: 400 438 91.3 %
Date: 2014-08-31 Functions: 50 55 90.9 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 262 305 85.9 %

Function Name Sort by function name Hit count Sort by hit count
RgX_check_QX 0
RgX_check_ZX 9535
RgX_check_ZXX 45
ZXT_remi2n 10028
ZXV_Z_mul 2700
ZXV_dotproduct 29595
ZXV_equal 0
ZXV_remi2n 0
ZXX_Z_divexact 1155
ZXX_Z_mul 1155
ZXX_max_lg 45
ZXX_renormalize 102029433
ZXX_to_Kronecker 208999
ZXX_to_Kronecker_spec 366315
ZX_Z_add 57911
ZX_Z_add_shallow 3530
ZX_Z_divexact 733699
ZX_Z_mul 2556274
ZX_Z_sub 12210
ZX_add 3758458
ZX_copy 58158
ZX_deriv 939329
ZX_equal 81940
ZX_eval1 3370
ZX_eval2BILspec 78374746
ZX_expispec 79802126
ZX_max_lg 1780
ZX_mod_Xnm1 847885
ZX_mul 54727059
ZX_mulspec 54868428
ZX_mulspec_mulii 38837611
ZX_mulu 42455
ZX_neg 49968
ZX_rem 73485
ZX_remi2n 29664
ZX_rescale 1910
ZX_rescale2n 13832
ZX_rescale_lt 0
ZX_shifti 58695
ZX_sqr 2242846
ZX_sqrspec 2242846
ZX_sqrspec_basecase 1427380
ZX_sqrspec_basecase_limb 15914226
ZX_sqrspec_sqri 699524
ZX_sub 162412
ZX_val 7292
ZX_valrem 6120193
ZX_valspec 106475585
Z_ZX_mulshiftspec 13281356
Z_ZX_sub 193698
Z_mod2BIL_ZX 39537135
Z_sqrshiftspec_ZX 110747
scalar_ZX 45726
scalar_ZX_shallow 5434
zx_to_ZX 0

Generated by: LCOV version 1.9