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 20704-afbaa81) Lines: 518 560 92.5 %
Date: 2017-05-26 05:56:59 Functions: 33 34 97.1 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
ellgroup_d2 39669
gen_PH_log 200866
gen_Pollard_log 49
gen_Shanks 2195618
gen_Shanks_init 2195170
gen_Shanks_log 94474
gen_Shanks_sqrtl 262163
gen_Shanks_sqrtn 282036
gen_ellgens 2667
gen_ellgroup 39746
gen_factored_order 2263237
gen_gener 14672
gen_lgener 296359
gen_order 2699643
gen_plog 449875
gen_pow 1133185
gen_pow_fold 109079
gen_pow_fold_i 182550
gen_pow_i 18275962
gen_powers 4274487
gen_powu 1122544
gen_powu_fold 0
gen_powu_fold_i 271798
gen_powu_i 51202155
gen_product 38834859
gen_select_order 882
get_arith_Z 73200
get_arith_ZZM 5373980
int_block 1217212
iter_rho 42510111
leftright_binary_powu 43919717
producttree_scheme 38117700
sliding_window_pow 73899
sliding_window_powu 7212512

Generated by: LCOV version 1.11