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 17842-03c132c) Lines: 502 541 92.8 %
Date: 2015-05-25 Functions: 32 33 97.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 345 424 81.4 %

Function Name Sort by function name Hit count Sort by hit count
dlog_get_ord 69168
dlog_get_ordfa 532763
ellgroup_d2 39508
gen_PH_log 196124
gen_Pollard_log 49
gen_Shanks 686
gen_Shanks_init 238
gen_Shanks_log 53480
gen_Shanks_sqrtl 158764
gen_Shanks_sqrtn 161788
gen_ellgens 2646
gen_ellgroup 39585
gen_factored_order 525
gen_gener 14665
gen_lgener 192840
gen_order 188959
gen_plog 370167
gen_pow 838191
gen_pow_fold 76109
gen_pow_fold_i 159426
gen_pow_i 25344774
gen_powers 1912678
gen_powu 800648
gen_powu_fold 0
gen_powu_fold_i 281800
gen_powu_i 42104193
gen_product 978468
gen_select_order 616
int_block 654231
iter_rho 66220626
leftright_binary_powu 40894405
sliding_window_pow 43897
sliding_window_powu 1147816

Generated by: LCOV version 1.9