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 16912-212c0f0) Lines: 482 525 91.8 %
Date: 2014-10-20 Functions: 31 32 96.9 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 324 410 79.0 %

Function Name Sort by function name Hit count Sort by hit count
dlog_get_ord 55459
dlog_get_ordfa 499275
ellgroup_d2 37177
gen_PH_log 185511
gen_Pollard_log 28
gen_Shanks 672
gen_Shanks_init 224
gen_Shanks_log 43770
gen_Shanks_sqrtl 142097
gen_Shanks_sqrtn 144794
gen_ellgens 2646
gen_ellgroup 37247
gen_factored_order 490
gen_gener 14658
gen_lgener 176054
gen_order 175156
gen_plog 334770
gen_pow 1033918
gen_pow_fold 67502
gen_pow_fold_i 124591
gen_pow_i 5981285
gen_powers 1785304
gen_powu 1010974
gen_powu_fold 0
gen_powu_fold_i 220716
gen_powu_i 38694457
gen_select_order 609
int_block 426404
iter_rho 7396068
leftright_binary_powu 37793817
sliding_window_pow 39733
sliding_window_powu 843647

Generated by: LCOV version 1.9