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 22331-3e57e49) Lines: 519 560 92.7 %
Date: 2018-04-23 06:15:27 Functions: 33 34 97.1 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
ellgroup_d2 40866
gen_PH_log 662280
gen_Pollard_log 49
gen_Shanks 2661146
gen_Shanks_init 2660698
gen_Shanks_log 204694
gen_Shanks_sqrtl 232838
gen_Shanks_sqrtn 241174
gen_ellgens 2723
gen_ellgroup 41027
gen_factored_order 2756184
gen_gener 15869
gen_lgener 267708
gen_order 3225573
gen_plog 884671
gen_pow 1206633
gen_pow_fold 110594
gen_pow_fold_i 199705
gen_pow_i 18663776
gen_powers 5535226
gen_powu 1324406
gen_powu_fold 0
gen_powu_fold_i 310159
gen_powu_i 55357498
gen_product 51549409
gen_select_order 945
get_arith_Z 204510
get_arith_ZZM 7156990
int_block 3572640
iter_rho 45004875
leftright_binary_powu 48315811
producttree_scheme 50005112
sliding_window_pow 91082
sliding_window_powu 6948075

Generated by: LCOV version 1.11