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 20838-243a3c2) Lines: 519 560 92.7 %
Date: 2017-07-28 06:22:09 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 1677636
gen_Pollard_log 49
gen_Shanks 2544418
gen_Shanks_init 2543970
gen_Shanks_log 399128
gen_Shanks_sqrtl 274782
gen_Shanks_sqrtn 294656
gen_ellgens 2667
gen_ellgroup 39746
gen_factored_order 2635553
gen_gener 14672
gen_lgener 308977
gen_order 3068603
gen_plog 1875677
gen_pow 1028031
gen_pow_fold 109170
gen_pow_fold_i 199321
gen_pow_i 24464094
gen_powers 4626905
gen_powu 1145674
gen_powu_fold 0
gen_powu_fold_i 272691
gen_powu_i 60041619
gen_product 39765806
gen_select_order 882
get_arith_Z 590671
get_arith_ZZM 8303733
int_block 3953748
iter_rho 60605436
leftright_binary_powu 52097635
producttree_scheme 38738390
sliding_window_pow 96044
sliding_window_powu 7855305

Generated by: LCOV version 1.11