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 17909-2b849a1) Lines: 432 458 94.3 %
Date: 2015-07-06 Functions: 54 57 94.7 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 278 315 88.3 %

Function Name Sort by function name Hit count Sort by hit count
RgX_check_QX 0
RgX_check_ZX 15637
RgX_check_ZXX 63
ZXT_remi2n 35978
ZXV_Z_mul 7476
ZXV_dotproduct 81648
ZXV_equal 35
ZXV_remi2n 0
ZXX_Z_add_shallow 42
ZXX_Z_divexact 92869
ZXX_Z_mul 2198
ZXX_max_lg 469
ZXX_renormalize 175144506
ZXX_to_Kronecker 435355
ZXX_to_Kronecker_spec 1323273
ZX_Z_add 65972
ZX_Z_add_shallow 9070
ZX_Z_divexact 2084233
ZX_Z_mul 6090909
ZX_Z_sub 34132
ZX_add 6775773
ZX_copy 100625
ZX_deriv 1694201
ZX_div_by_X_1 21
ZX_equal 193852
ZX_eval1 4718
ZX_eval2BILspec 118517693
ZX_expispec 121355304
ZX_max_lg 5369
ZX_mod_Xnm1 1495512
ZX_mul 81192549
ZX_mulspec 81477602
ZX_mulspec_mulii 58451823
ZX_mulu 118510
ZX_neg 3594
ZX_rem 131782
ZX_remi2n 93322
ZX_rescale 10485
ZX_rescale2n 22178
ZX_rescale_lt 0
ZX_shifti 176526
ZX_sqr 4644622
ZX_sqrspec 4644667
ZX_sqrspec_basecase 2835469
ZX_sqrspec_basecase_limb 31058819
ZX_sqrspec_sqri 1614138
ZX_sub 319360
ZX_val 15543
ZX_valrem 8591061
ZX_valspec 160189321
Z_ZX_mulshiftspec 19323537
Z_ZX_sub 302244
Z_mod2BIL_ZX 60065967
Z_sqrshiftspec_ZX 188658
scalar_ZX 20432
scalar_ZX_shallow 19300
zx_to_ZX 91

Generated by: LCOV version 1.9