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 16827-3d78da8) Lines: 482 525 91.8 %
Date: 2014-09-29 Functions: 31 32 96.9 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 323 410 78.8 %

Function Name Sort by function name Hit count Sort by hit count
dlog_get_ord 54791
dlog_get_ordfa 504471
ellgroup_d2 37177
gen_PH_log 187901
gen_Pollard_log 28
gen_Shanks 679
gen_Shanks_init 231
gen_Shanks_log 45345
gen_Shanks_sqrtl 141487
gen_Shanks_sqrtn 144197
gen_ellgens 2646
gen_ellgroup 37247
gen_factored_order 497
gen_gener 14658
gen_lgener 175444
gen_order 174755
gen_plog 346105
gen_pow 1031894
gen_pow_fold 68006
gen_pow_fold_i 125206
gen_pow_i 5996372
gen_powers 1795160
gen_powu 1014864
gen_powu_fold 0
gen_powu_fold_i 224972
gen_powu_i 38864914
gen_select_order 189
int_block 395187
iter_rho 7396068
leftright_binary_powu 37963011
sliding_window_pow 38094
sliding_window_powu 844683

Generated by: LCOV version 1.9