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 17433-48485c0) Lines: 483 525 92.0 %
Date: 2015-02-01 Functions: 31 32 96.9 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 328 410 80.0 %

Function Name Sort by function name Hit count Sort by hit count
dlog_get_ord 58125
dlog_get_ordfa 533639
ellgroup_d2 39501
gen_PH_log 195622
gen_Pollard_log 28
gen_Shanks 672
gen_Shanks_init 224
gen_Shanks_log 53322
gen_Shanks_sqrtl 159365
gen_Shanks_sqrtn 162127
gen_ellgens 2646
gen_ellgroup 39571
gen_factored_order 490
gen_gener 14665
gen_lgener 193434
gen_order 189533
gen_plog 374454
gen_pow 705832
gen_pow_fold 75920
gen_pow_fold_i 156388
gen_pow_i 9463262
gen_powers 1963637
gen_powu 863485
gen_powu_fold 0
gen_powu_fold_i 229486
gen_powu_i 43088033
gen_select_order 616
int_block 495467
iter_rho 17720766
leftright_binary_powu 41847688
sliding_window_pow 43464
sliding_window_powu 1179003

Generated by: LCOV version 1.9