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 21064-a7054ad) Lines: 519 560 92.7 %
Date: 2017-09-25 06:24:50 Functions: 33 34 97.1 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
ellgroup_d2 39669
gen_PH_log 1673739
gen_Pollard_log 49
gen_Shanks 2544418
gen_Shanks_init 2543970
gen_Shanks_log 397299
gen_Shanks_sqrtl 274828
gen_Shanks_sqrtn 294848
gen_ellgens 2667
gen_ellgroup 39746
gen_factored_order 2635553
gen_gener 14672
gen_lgener 309023
gen_order 3068723
gen_plog 1868732
gen_pow 1028972
gen_pow_fold 108269
gen_pow_fold_i 199494
gen_pow_i 24257160
gen_powers 4657593
gen_powu 1147611
gen_powu_fold 0
gen_powu_fold_i 271963
gen_powu_i 59806653
gen_product 39781068
gen_select_order 882
get_arith_Z 587953
get_arith_ZZM 8297758
int_block 3953451
iter_rho 59978787
leftright_binary_powu 51862877
producttree_scheme 38758437
sliding_window_pow 96339
sliding_window_powu 7855102

Generated by: LCOV version 1.11