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 17072-bc6ca01) Lines: 415 447 92.8 %
Date: 2014-11-17 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 14133
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 420
ZXX_renormalize 153971368
ZXX_to_Kronecker 403792
ZXX_to_Kronecker_spec 858956
ZX_Z_add 31240
ZX_Z_add_shallow 4893
ZX_Z_divexact 1221913
ZX_Z_mul 3650784
ZX_Z_sub 17164
ZX_add 4504243
ZX_copy 65527
ZX_deriv 1327549
ZX_equal 122679
ZX_eval1 4718
ZX_eval2BILspec 113526679
ZX_expispec 115538175
ZX_max_lg 4529
ZX_mod_Xnm1 1187039
ZX_mul 77781379
ZX_mulspec 78051575
ZX_mulspec_mulii 56164720
ZX_mulu 60214
ZX_neg 3545
ZX_rem 120897
ZX_remi2n 42056
ZX_rescale 2674
ZX_rescale2n 19253
ZX_rescale_lt 0
ZX_shifti 82710
ZX_sqr 3370070
ZX_sqrspec 3370070
ZX_sqrspec_basecase 2011496
ZX_sqrspec_basecase_limb 20144386
ZX_sqrspec_sqri 1197239
ZX_sub 256891
ZX_val 10673
ZX_valrem 8563438
ZX_valspec 153171835
Z_ZX_mulshiftspec 18738231
Z_ZX_sub 296411
Z_mod2BIL_ZX 57361959
Z_sqrshiftspec_ZX 157198
scalar_ZX 14405
scalar_ZX_shallow 12724
zx_to_ZX 0

Generated by: LCOV version 1.9