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 19825-b77c7f8) Lines: 519 562 92.3 %
Date: 2016-12-04 05:49:01 Functions: 33 34 97.1 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
ellgroup_d2 39494
gen_PH_log 184536
gen_Pollard_log 49
gen_Shanks 2186385
gen_Shanks_init 2185937
gen_Shanks_log 93959
gen_Shanks_sqrtl 261676
gen_Shanks_sqrtn 279428
gen_ellgens 2646
gen_ellgroup 39571
gen_factored_order 2255754
gen_gener 14665
gen_lgener 296114
gen_order 2901639
gen_plog 439740
gen_pow 1048180
gen_pow_fold 71125
gen_pow_fold_i 137347
gen_pow_i 16851157
gen_powers 3840025
gen_powu 1077202
gen_powu_fold 0
gen_powu_fold_i 204610
gen_powu_i 48965178
gen_product 2738147
gen_select_order 882
get_arith_Z 60313
get_arith_ZZM 5547242
int_block 912431
iter_rho 38321295
leftright_binary_powu 41448271
producttree_scheme 2599506
sliding_window_pow 72791
sliding_window_powu 7449476

Generated by: LCOV version 1.11