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-bordeaux.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 19619-c9e92b8) Lines: 433 458 94.5 %
Date: 2016-09-29 05:54:10 Functions: 55 57 96.5 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
RgX_check_QX 108796
RgX_check_ZX 604306
RgX_check_ZXX 63
ZXT_remi2n 35942
ZXV_Z_mul 7476
ZXV_dotproduct 82250
ZXV_equal 35
ZXV_remi2n 0
ZXX_Z_add_shallow 42
ZXX_Z_divexact 52920
ZXX_Z_mul 2058
ZXX_max_lg 497
ZXX_renormalize 169569402
ZXX_to_Kronecker 563728
ZXX_to_Kronecker_spec 1371878
ZX_Z_add 66055
ZX_Z_add_shallow 9307
ZX_Z_divexact 2158346
ZX_Z_mul 7533359
ZX_Z_sub 34426
ZX_add 8229130
ZX_copy 91897
ZX_deriv 1408414
ZX_div_by_X_1 21
ZX_equal 990523
ZX_eval1 4718
ZX_eval2BILspec 112198278
ZX_expispec 116194904
ZX_max_lg 7846089
ZX_mod_Xnm1 1483068
ZX_mul 76502825
ZX_mulspec 78089266
ZX_mulspec_mulii 55249259
ZX_mulu 119686
ZX_neg 4220
ZX_rem 146454
ZX_remi2n 93274
ZX_rescale 11029
ZX_rescale2n 24313
ZX_rescale_lt 0
ZX_shifti 176597
ZX_sqr 5936080
ZX_sqrspec 5936037
ZX_sqrspec_basecase 3993470
ZX_sqrspec_basecase_limb 34765320
ZX_sqrspec_sqri 1699836
ZX_sub 535311
ZX_val 16676
ZX_valrem 8803585
ZX_valspec 156106927
Z_ZX_mulshiftspec 19839311
Z_ZX_sub 418919
Z_mod2BIL_ZX 56949069
Z_sqrshiftspec_ZX 236307
scalar_ZX 20061
scalar_ZX_shallow 17057
zx_to_ZX 1764

Generated by: LCOV version 1.11