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 16624-25b9976) Lines: 400 438 91.3 %
Date: 2014-06-24 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 102156925
ZXX_to_Kronecker 209093
ZXX_to_Kronecker_spec 366439
ZX_Z_add 57911
ZX_Z_add_shallow 3530
ZX_Z_divexact 742630
ZX_Z_mul 2560809
ZX_Z_sub 12210
ZX_add 3762687
ZX_copy 58036
ZX_deriv 939732
ZX_equal 81977
ZX_eval1 3370
ZX_eval2BILspec 78470867
ZX_expispec 79901121
ZX_max_lg 1795
ZX_mod_Xnm1 847885
ZX_mul 54791248
ZX_mulspec 54932458
ZX_mulspec_mulii 38884738
ZX_mulu 42455
ZX_neg 49968
ZX_rem 73635
ZX_remi2n 29664
ZX_rescale 1910
ZX_rescale2n 13990
ZX_rescale_lt 0
ZX_shifti 58695
ZX_sqr 2247370
ZX_sqrspec 2247370
ZX_sqrspec_basecase 1430254
ZX_sqrspec_basecase_limb 15929128
ZX_sqrspec_sqri 701391
ZX_sub 162988
ZX_val 7302
ZX_valrem 6120618
ZX_valspec 106607526
Z_ZX_mulshiftspec 13297933
Z_ZX_sub 194005
Z_mod2BIL_ZX 39586129
Z_sqrshiftspec_ZX 110539
scalar_ZX 45726
scalar_ZX_shallow 5440
zx_to_ZX 0

Generated by: LCOV version 1.9