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 16791-0d1274a) Lines: 482 525 91.8 %
Date: 2014-09-16 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 39144
dlog_get_ordfa 360862
ellgroup_d2 26550
gen_PH_log 134355
gen_Pollard_log 20
gen_Shanks 485
gen_Shanks_init 165
gen_Shanks_log 32419
gen_Shanks_sqrtl 101747
gen_Shanks_sqrtn 103694
gen_ellgens 1895
gen_ellgroup 26600
gen_factored_order 355
gen_gener 10460
gen_lgener 125957
gen_order 125169
gen_plog 247711
gen_pow 740218
gen_pow_fold 48576
gen_pow_fold_i 91910
gen_pow_i 4354934
gen_powers 1281575
gen_powu 723236
gen_powu_fold 0
gen_powu_fold_i 159898
gen_powu_i 27861786
gen_select_order 410
int_block 304786
iter_rho 5469468
leftright_binary_powu 27218475
sliding_window_pow 29400
sliding_window_powu 602439

Generated by: LCOV version 1.9