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.8.0 lcov report (development 19357-d770f77) Lines: 500 544 91.9 %
Date: 2016-08-27 06:11:27 Functions: 32 33 97.0 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
ellgroup_d2 39515
gen_PH_log 240437
gen_Pollard_log 49
gen_Shanks 2200553
gen_Shanks_init 2200105
gen_Shanks_log 94436
gen_Shanks_sqrtl 255257
gen_Shanks_sqrtn 271840
gen_ellgens 2646
gen_ellgroup 39592
gen_factored_order 2270720
gen_gener 14665
gen_lgener 289332
gen_order 2916377
gen_plog 449658
gen_pow 1584043
gen_pow_fold 77586
gen_pow_fold_i 142776
gen_pow_i 21137499
gen_powers 3537453
gen_powu 1108527
gen_powu_fold 0
gen_powu_fold_i 213270
gen_powu_i 53440494
gen_product 2757931
gen_select_order 917
get_arith_Z 72944
get_arith_ZZM 5597561
int_block 902662
iter_rho 51744627
leftright_binary_powu 45893357
sliding_window_pow 72501
sliding_window_powu 7454698

Generated by: LCOV version 1.11