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 17588-7fd783e) Lines: 487 525 92.8 %
Date: 2015-03-04 Functions: 31 32 96.9 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 332 410 81.0 %

Function Name Sort by function name Hit count Sort by hit count
dlog_get_ord 69158
dlog_get_ordfa 532705
ellgroup_d2 39508
gen_PH_log 196117
gen_Pollard_log 49
gen_Shanks 672
gen_Shanks_init 224
gen_Shanks_log 53437
gen_Shanks_sqrtl 158764
gen_Shanks_sqrtn 161788
gen_ellgens 2646
gen_ellgroup 39585
gen_factored_order 490
gen_gener 14665
gen_lgener 192840
gen_order 188959
gen_plog 370059
gen_pow 749079
gen_pow_fold 76127
gen_pow_fold_i 154172
gen_pow_i 25303685
gen_powers 1966509
gen_powu 880524
gen_powu_fold 0
gen_powu_fold_i 294457
gen_powu_i 62912065
gen_select_order 616
int_block 653414
iter_rho 66220626
leftright_binary_powu 61608247
sliding_window_pow 43876
sliding_window_powu 1242251

Generated by: LCOV version 1.9