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.10.0 lcov report (development 20084-3366ab4) Lines: 433 458 94.5 %
Date: 2017-01-19 05:50:13 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 109207
RgX_check_ZX 601196
RgX_check_ZXX 63
ZXT_remi2n 36017
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 518
ZXX_renormalize 162719463
ZXX_to_Kronecker 445666
ZXX_to_Kronecker_spec 1217972
ZX_Z_add 66221
ZX_Z_add_shallow 9316
ZX_Z_divexact 2149426
ZX_Z_mul 7556043
ZX_Z_sub 34426
ZX_add 8203999
ZX_copy 94383
ZX_deriv 1422512
ZX_div_by_X_1 21
ZX_equal 287462
ZX_eval1 4718
ZX_eval2BILspec 108862416
ZX_expispec 112152415
ZX_max_lg 7853721
ZX_mod_Xnm1 1483112
ZX_mul 74828006
ZX_mulspec 76409682
ZX_mulspec_mulii 53580288
ZX_mulu 119686
ZX_neg 4682
ZX_rem 152838
ZX_remi2n 93372
ZX_rescale 11043
ZX_rescale2n 28532
ZX_rescale_lt 0
ZX_shifti 176718
ZX_sqr 5231707
ZX_sqrspec 5231708
ZX_sqrspec_basecase 3286623
ZX_sqrspec_basecase_limb 32820674
ZX_sqrspec_sqri 1701926
ZX_sub 529047
ZX_val 16816
ZX_valrem 8817133
ZX_valspec 152179072
Z_ZX_mulshiftspec 19896555
Z_ZX_sub 416250
Z_mod2BIL_ZX 55282168
Z_sqrshiftspec_ZX 236792
scalar_ZX 19956
scalar_ZX_shallow 17179
zx_to_ZX 287

Generated by: LCOV version 1.11