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.10.0 lcov report (development 21331-964717c) Lines: 719 750 95.9 %
Date: 2017-11-17 06:20:57 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 91
chk_factors 119
chk_factors_get 210
QX_factor 287
polcyclofactors 315
BD_odd 406
BD_odd_iscyclo 994
poliscycloprod 1029
LLL_check_progress 1099
myconcat 2310
BD 2359
BD_iscyclo 3948
ZX_factor 4978
ZX_factor_i 5265
fact_from_DDF 5265
poliscyclo 5334
cmbf 6532
cmbf_precs 6532
combine_factors 6532
Beauzamy_bound 8121
Mignotte_bound 8121
factor_bound 8121
ZX_squff 12954
ZX_is_irred 16275
ZX_DDF 20875
DDF 28484
ZX_is_squarefree 31444
root_bound 46320
ZXQ_mul_by_X 46326
shifteval 79088
DDF_roots 582512
nfrootsQ 582512
ZX_radical 599579
pick_prime 610996
QX_gcd 3360123
_gcd 3360123
ZX_gcd 3417756
ZX_gcd_all 4047289
ZX_divides 6263434
ZX_divides_i 6267669

Generated by: LCOV version 1.11