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 21352-4be8729) Lines: 519 560 92.7 %
Date: 2017-11-23 06:21:03 Functions: 33 34 97.1 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
gen_powu_fold 0
gen_Pollard_log 49
gen_select_order 882
gen_ellgens 2667
gen_gener 14672
ellgroup_d2 39669
gen_ellgroup 39746
sliding_window_pow 97353
gen_pow_fold 108438
get_arith_Z 181252
gen_pow_fold_i 197761
gen_Shanks_log 205475
gen_powu_fold_i 273474
gen_Shanks_sqrtl 275087
gen_Shanks_sqrtn 282199
gen_lgener 308868
gen_PH_log 519979
gen_plog 832434
gen_pow 1029310
gen_powu 1143380
gen_Shanks_init 2543970
gen_Shanks 2544418
gen_factored_order 2635553
gen_order 3082100
int_block 3968815
gen_powers 4670966
get_arith_ZZM 6721604
sliding_window_powu 7867079
gen_pow_i 23984001
producttree_scheme 39890679
gen_product 40789254
leftright_binary_powu 52202940
gen_powu_i 60158518
iter_rho 60213018

Generated by: LCOV version 1.11