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 16393-29b9383) Lines: 459 496 92.5 %
Date: 2014-04-24 Functions: 29 30 96.7 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 305 384 79.4 %

Function Name Sort by function name Hit count Sort by hit count
dlog_get_ord 52852
dlog_get_ordfa 470658
ellgroup_d2 26400
gen_PH_log 212213
gen_Pollard_log 20
gen_Shanks_log 40968
gen_Shanks_sqrtl 101387
gen_Shanks_sqrtn 103340
gen_ellgens 1890
gen_ellgroup 26450
gen_factored_order 35
gen_gener 10455
gen_lgener 125562
gen_order 184244
gen_plog 267459
gen_pow 992290
gen_pow_fold 50731
gen_pow_fold_i 91350
gen_pow_i 4735040
gen_powers 1342440
gen_powu 894218
gen_powu_fold 0
gen_powu_fold_i 155697
gen_powu_i 29351545
gen_select_order 410
int_block 318333
iter_rho 5789226
leftright_binary_powu 27678291
sliding_window_pow 29817
sliding_window_powu 1630305

Generated by: LCOV version 1.9