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.10.0 lcov report (development 20459-9710128) Lines: 518 560 92.5 %
Date: 2017-03-30 05:32:39 Functions: 33 34 97.1 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
ellgroup_d2 33930
gen_PH_log 171950
gen_Pollard_log 42
gen_Shanks 1871244
gen_Shanks_init 1870860
gen_Shanks_log 79663
gen_Shanks_sqrtl 219504
gen_Shanks_sqrtn 234508
gen_ellgens 2286
gen_ellgroup 33996
gen_factored_order 1928340
gen_gener 12576
gen_lgener 248857
gen_order 2335005
gen_plog 382381
gen_pow 809875
gen_pow_fold 54810
gen_pow_fold_i 89086
gen_pow_i 14502605
gen_powers 3584913
gen_powu 937260
gen_powu_fold 0
gen_powu_fold_i 196270
gen_powu_i 41999744
gen_product 21270650
gen_select_order 756
get_arith_Z 62671
get_arith_ZZM 4615324
int_block 559062
iter_rho 33107109
leftright_binary_powu 36080504
producttree_scheme 21133475
sliding_window_pow 37313
sliding_window_powu 5866120

Generated by: LCOV version 1.11