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 20123-c22c2cd) Lines: 521 560 93.0 %
Date: 2017-01-24 05:49:10 Functions: 33 34 97.1 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
ellgroup_d2 39767
gen_PH_log 211946
gen_Pollard_log 49
gen_Shanks 2195618
gen_Shanks_init 2195170
gen_Shanks_log 94572
gen_Shanks_sqrtl 261694
gen_Shanks_sqrtn 279564
gen_ellgens 2653
gen_ellgroup 39844
gen_factored_order 2263237
gen_gener 14672
gen_lgener 296280
gen_order 2750260
gen_plog 457881
gen_pow 1102763
gen_pow_fold 71132
gen_pow_fold_i 137404
gen_pow_i 17674744
gen_powers 3950078
gen_powu 1086984
gen_powu_fold 0
gen_powu_fold_i 232476
gen_powu_i 49849559
gen_product 24843258
gen_select_order 882
get_arith_Z 83455
get_arith_ZZM 5439625
int_block 912349
iter_rho 40649670
leftright_binary_powu 42483559
producttree_scheme 24670376
sliding_window_pow 72672
sliding_window_powu 7273508

Generated by: LCOV version 1.11