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 to exceed 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.12.0 lcov report (development 23348-5caea72e3) Lines: 534 577 92.5 %
Date: 2018-12-14 05:41:32 Functions: 35 36 97.2 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
gen_powu_fold 0
gen_Pollard_log 49
gen_pow_init 126
gen_select_order 945
gen_ellgens 2723
gen_gener 15869
ellgroup_d2 40873
gen_ellgroup 41034
gen_pow_table 64733
sliding_window_pow 82228
gen_pow_fold 113296
gen_pow_fold_i 202271
gen_Shanks_sqrtl 233224
gen_Shanks_sqrtn 241632
gen_lgener 268139
gen_powu_fold_i 304987
gen_Shanks_log 379273
get_arith_Z 399737
gen_pow 1085397
gen_PH_log 1098828
gen_powu 1342310
gen_plog 1565016
gen_Shanks_init 2679171
gen_Shanks 2679619
gen_factored_order 2777051
gen_order 3241573
int_block 3897604
sliding_window_powu 6925990
gen_powers 7141025
get_arith_ZZM 7961678
gen_pow_i 22662380
producttree_scheme 50542082
gen_product 52213468
leftright_binary_powu 54469573
iter_rho 56904783
gen_powu_i 61499721

Generated by: LCOV version 1.13