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 17953-c39f2e6) Lines: 501 541 92.6 %
Date: 2015-08-30 Functions: 32 33 97.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 341 424 80.4 %

Function Name Sort by function name Hit count Sort by hit count
dlog_get_ord 69154
dlog_get_ordfa 1369993
ellgroup_d2 39508
gen_PH_log 196124
gen_Pollard_log 49
gen_Shanks 506479
gen_Shanks_init 506031
gen_Shanks_log 55863
gen_Shanks_sqrtl 169276
gen_Shanks_sqrtn 172027
gen_ellgens 2646
gen_ellgroup 39585
gen_factored_order 580050
gen_gener 14665
gen_lgener 203352
gen_order 446664
gen_plog 375979
gen_pow 851289
gen_pow_fold 76109
gen_pow_fold_i 159767
gen_pow_i 25437109
gen_powers 2065490
gen_powu 849765
gen_powu_fold 0
gen_powu_fold_i 283168
gen_powu_i 45709653
gen_product 1284281
gen_select_order 896
int_block 683917
iter_rho 66220626
leftright_binary_powu 43254545
sliding_window_pow 49942
sliding_window_powu 2393046

Generated by: LCOV version 1.9