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 17110-9967e23) Lines: 482 525 91.8 %
Date: 2014-11-26 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 39818
dlog_get_ordfa 375289
ellgroup_d2 28210
gen_PH_log 135415
gen_Pollard_log 20
gen_Shanks 480
gen_Shanks_init 160
gen_Shanks_log 34301
gen_Shanks_sqrtl 114327
gen_Shanks_sqrtn 116330
gen_ellgens 1890
gen_ellgroup 28260
gen_factored_order 350
gen_gener 10470
gen_lgener 138582
gen_order 137465
gen_plog 255345
gen_pow 499568
gen_pow_fold 52301
gen_pow_fold_i 119335
gen_pow_i 6614784
gen_powers 1356906
gen_powu 587083
gen_powu_fold 0
gen_powu_fold_i 160867
gen_powu_i 30462228
gen_select_order 435
int_block 323266
iter_rho 12297780
leftright_binary_powu 29612556
sliding_window_pow 30571
sliding_window_powu 807405

Generated by: LCOV version 1.9