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-bordeaux.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 19070-36a960b) Lines: 502 544 92.3 %
Date: 2016-06-30 Functions: 32 33 97.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 339 428 79.2 %

Function Name Sort by function name Hit count Sort by hit count
dlog_get_ord 75977
dlog_get_ordfa 1698466
ellgroup_d2 39515
gen_PH_log 239691
gen_Pollard_log 49
gen_Shanks 506479
gen_Shanks_init 506031
gen_Shanks_log 79832
gen_Shanks_sqrtl 180318
gen_Shanks_sqrtn 185526
gen_ellgens 2646
gen_ellgroup 39592
gen_factored_order 580057
gen_gener 14665
gen_lgener 214394
gen_order 707873
gen_plog 426512
gen_pow 1297853
gen_pow_fold 78993
gen_pow_fold_i 144401
gen_pow_i 22005077
gen_powers 3398054
gen_powu 1138338
gen_powu_fold 0
gen_powu_fold_i 279742
gen_powu_i 44044142
gen_product 1503213
gen_select_order 917
int_block 772379
iter_rho 55393914
leftright_binary_powu 41136042
sliding_window_pow 57927
sliding_window_powu 2826839

Generated by: LCOV version 1.9