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 to exceed 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.12.0 lcov report (development 23008-54b2e2f01) Lines: 536 579 92.6 %
Date: 2018-09-20 05:37:46 Functions: 35 36 97.2 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
gen_powu_fold 0
gen_Pollard_log 49
gen_pow_init 126
gen_select_order 945
gen_ellgens 2723
gen_gener 15869
ellgroup_d2 40866
gen_ellgroup 41027
gen_pow_table 64737
sliding_window_pow 82247
gen_pow_fold 111539
gen_pow_fold_i 198900
gen_Shanks_log 209159
gen_Shanks_sqrtl 233390
get_arith_Z 234292
gen_Shanks_sqrtn 241840
gen_lgener 268354
gen_powu_fold_i 299708
gen_PH_log 712722
gen_plog 930332
gen_pow 1065306
gen_powu 1324020
gen_Shanks_init 2679171
gen_Shanks 2679619
gen_factored_order 2777051
gen_order 3241567
int_block 3899560
gen_powers 6906253
sliding_window_powu 6926028
get_arith_ZZM 7263691
gen_pow_i 22798868
producttree_scheme 50186192
gen_product 51793441
leftright_binary_powu 54299510
iter_rho 57398664
gen_powu_i 61316588

Generated by: LCOV version 1.13