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 21940-9a7b1a1) Lines: 519 560 92.7 %
Date: 2018-02-22 06:15:58 Functions: 33 34 97.1 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
ellgroup_d2 39606
gen_PH_log 563627
gen_Pollard_log 49
gen_Shanks 2657519
gen_Shanks_init 2657071
gen_Shanks_log 196335
gen_Shanks_sqrtl 234389
gen_Shanks_sqrtn 241590
gen_ellgens 2660
gen_ellgroup 39683
gen_factored_order 2755554
gen_gener 14686
gen_lgener 268251
gen_order 3196639
gen_plog 826423
gen_pow 1028582
gen_pow_fold 108066
gen_pow_fold_i 194665
gen_pow_i 22678237
gen_powers 5532722
gen_powu 1304126
gen_powu_fold 0
gen_powu_fold_i 307880
gen_powu_i 59559698
gen_product 51343087
gen_select_order 903
get_arith_Z 194305
get_arith_ZZM 7007193
int_block 2802941
iter_rho 57143466
leftright_binary_powu 51891001
producttree_scheme 49820966
sliding_window_pow 81259
sliding_window_powu 7575720

Generated by: LCOV version 1.11