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-bordeaux1.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 17909-2b849a1) Lines: 501 541 92.6 %
Date: 2015-07-05 Functions: 32 33 97.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 341 424 80.4 %

Function Name Sort by function name Hit count Sort by hit count
dlog_get_ord 69161
dlog_get_ordfa 532686
ellgroup_d2 39508
gen_PH_log 196124
gen_Pollard_log 49
gen_Shanks 686
gen_Shanks_init 238
gen_Shanks_log 53480
gen_Shanks_sqrtl 160122
gen_Shanks_sqrtn 162880
gen_ellgens 2646
gen_ellgroup 39585
gen_factored_order 525
gen_gener 14665
gen_lgener 194198
gen_order 188882
gen_plog 371560
gen_pow 850869
gen_pow_fold 76109
gen_pow_fold_i 159736
gen_pow_i 25376056
gen_powers 2067271
gen_powu 850216
gen_powu_fold 0
gen_powu_fold_i 283147
gen_powu_i 42256633
gen_product 978539
gen_select_order 896
int_block 679555
iter_rho 66220626
leftright_binary_powu 41038196
sliding_window_pow 49044
sliding_window_powu 1156375

Generated by: LCOV version 1.9