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-bordeaux1.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.8.0 lcov report (development 16937-4bd9b4e) Lines: 709 765 92.7 %
Date: 2014-10-24 Functions: 40 43 93.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 455 588 77.4 %

Function Name Sort by function name Hit count Sort by hit count
BD 2359
BD_deg1 0
BD_iscyclo 2002
BD_odd 406
BD_odd_iscyclo 805
Beauzamy_bound 4277
DDF 9359
DDF_roots 578795
LLL_check_progress 469
LLL_cmbf 21
Mignotte_bound 4277
QX_factor 70
QX_gcd 3357677
ZXQ_mul_by_X 45948
ZX_DDF 6916
ZX_divides 6253860
ZX_divides_i 6255519
ZX_factor 1379
ZX_factor_i 1449
ZX_gcd 3381283
ZX_gcd_all 3985301
ZX_is_irred 5194
ZX_is_squarefree 10703
ZX_squff 4382
_gcd 3357677
chk_factors 28
chk_factors_get 112
cmbf 3381
cmbf_precs 3381
combine_factors 3381
fact_from_DDF 1449
factor_bound 4277
factor_quad 0
myconcat 2310
next2pow 0
nfrootsQ 578795
pick_prime 588154
polcyclofactors 315
poliscyclo 3045
poliscycloprod 1029
root_bound 41769
shifteval 72009
special_pivot 56

Generated by: LCOV version 1.9