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 20084-3366ab4) Lines: 719 750 95.9 %
Date: 2017-01-19 05:50:13 Functions: 41 42 97.6 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
BD 2359
BD_deg1 0
BD_iscyclo 2604
BD_odd 406
BD_odd_iscyclo 854
Beauzamy_bound 6840
DDF 17137
DDF_roots 581910
LLL_check_progress 1085
LLL_cmbf 91
Mignotte_bound 6840
QX_factor 1281
QX_gcd 3453315
ZXQ_mul_by_X 46046
ZX_DDF 12370
ZX_divides 6262743
ZX_divides_i 6266005
ZX_factor 2493
ZX_factor_i 3774
ZX_gcd 3482241
ZX_gcd_all 4103400
ZX_is_irred 9156
ZX_is_squarefree 17220
ZX_radical 598158
ZX_squff 9579
_gcd 3453315
chk_factors 119
chk_factors_get 203
cmbf 5391
cmbf_precs 5391
combine_factors 5391
fact_from_DDF 3774
factor_bound 6840
myconcat 2310
next2pow 14
nfrootsQ 581910
pick_prime 599047
polcyclofactors 315
poliscyclo 3948
poliscycloprod 1029
root_bound 44815
shifteval 76855

Generated by: LCOV version 1.11