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 18590-b5f7c1c) Lines: 727 765 95.0 %
Date: 2016-02-09 Functions: 41 43 95.3 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 480 588 81.6 %

Function Name Sort by function name Hit count Sort by hit count
BD 2359
BD_deg1 0
BD_iscyclo 2282
BD_odd 406
BD_odd_iscyclo 868
Beauzamy_bound 5733
DDF 15862
DDF_roots 581686
LLL_check_progress 1330
LLL_cmbf 91
Mignotte_bound 5733
QX_factor 308
QX_gcd 3469796
ZXQ_mul_by_X 46074
ZX_DDF 11060
ZX_divides 6260391
ZX_divides_i 6262757
ZX_factor 2205
ZX_factor_i 2513
ZX_gcd 3498827
ZX_gcd_all 4112476
ZX_is_irred 9142
ZX_is_squarefree 15603
ZX_squff 6912
_gcd 3469796
chk_factors 119
chk_factors_get 266
cmbf 4662
cmbf_precs 4662
combine_factors 4662
fact_from_DDF 2513
factor_bound 5733
factor_quad 0
myconcat 2310
next2pow 14
nfrootsQ 581686
pick_prime 597548
polcyclofactors 315
poliscyclo 3758
poliscycloprod 1029
root_bound 43764
shifteval 75208
special_pivot 175

Generated by: LCOV version 1.9