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 - bb_group.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.10.0 lcov report (development 20296-0a10b35) Lines: 519 560 92.7 %
Date: 2017-02-26 05:50:47 Functions: 33 34 97.1 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
ellgroup_d2 39767
gen_PH_log 211738
gen_Pollard_log 49
gen_Shanks 2195618
gen_Shanks_init 2195170
gen_Shanks_log 94506
gen_Shanks_sqrtl 261694
gen_Shanks_sqrtn 279463
gen_ellgens 2653
gen_ellgroup 39844
gen_factored_order 2263237
gen_gener 14672
gen_lgener 296085
gen_order 2742749
gen_plog 458011
gen_pow 1099367
gen_pow_fold 73729
gen_pow_fold_i 139838
gen_pow_i 16968610
gen_powers 3958183
gen_powu 1091200
gen_powu_fold 0
gen_powu_fold_i 235240
gen_powu_i 49665028
gen_product 24850035
gen_select_order 882
get_arith_Z 83226
get_arith_ZZM 5431836
int_block 916273
iter_rho 38513865
leftright_binary_powu 42319950
producttree_scheme 24675976
sliding_window_pow 72789
sliding_window_powu 7253261

Generated by: LCOV version 1.11