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.8.0 lcov report (development 19619-c9e92b8) Lines: 500 544 91.9 %
Date: 2016-09-29 05:54:10 Functions: 32 33 97.0 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
ellgroup_d2 39494
gen_PH_log 243310
gen_Pollard_log 49
gen_Shanks 2200553
gen_Shanks_init 2200105
gen_Shanks_log 95440
gen_Shanks_sqrtl 261991
gen_Shanks_sqrtn 279793
gen_ellgens 2646
gen_ellgroup 39571
gen_factored_order 2270720
gen_gener 14665
gen_lgener 296424
gen_order 2916185
gen_plog 453889
gen_pow 1779449
gen_pow_fold 94981
gen_pow_fold_i 160565
gen_pow_i 21339596
gen_powers 3846682
gen_powu 1108105
gen_powu_fold 0
gen_powu_fold_i 230836
gen_powu_i 53754080
gen_product 2764517
gen_select_order 882
get_arith_Z 74707
get_arith_ZZM 5601305
int_block 904849
iter_rho 51744627
leftright_binary_powu 46186794
sliding_window_pow 72387
sliding_window_powu 7472286

Generated by: LCOV version 1.11