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 - QX_factor.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.11.0 lcov report (development 22860-5579deb0b) Lines: 715 746 95.8 %
Date: 2018-07-18 05:36:42 Functions: 41 42 97.6 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
BD_deg1 0
next2pow 14
LLL_cmbf 105
chk_factors 140
chk_factors_get 231
polcyclofactors 315
QX_factor 357
BD_odd 406
BD_odd_iscyclo 1022
poliscycloprod 1029
LLL_check_progress 1211
myconcat 2310
BD 2359
BD_iscyclo 4046
poliscyclo 5489
ZX_factor 5818
fact_from_DDF 6168
ZX_factor_i 6175
cmbf 7183
cmbf_precs 7183
combine_factors 7183
Beauzamy_bound 8800
Mignotte_bound 8800
factor_bound 8800
ZX_squff 14193
ZX_is_irred 17542
ZX_DDF 23094
ZX_is_squarefree 31955
DDF 32320
ZXQ_mul_by_X 46438
root_bound 46866
shifteval 80124
DDF_roots 582561
nfrootsQ 582561
ZX_radical 600683
pick_prime 614881
QX_gcd 3360669
_gcd 3360669
ZX_gcd 3422264
ZX_gcd_all 4055792
ZX_divides 6270581
ZX_divides_i 6274963

Generated by: LCOV version 1.13