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 16741-1378b1c) Lines: 709 765 92.7 %
Date: 2014-08-17 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 1685
BD_deg1 0
BD_iscyclo 1440
BD_odd 290
BD_odd_iscyclo 575
Beauzamy_bound 3110
DDF 6900
DDF_roots 413440
LLL_check_progress 335
LLL_cmbf 15
Mignotte_bound 3110
QX_factor 65
QX_gcd 2399451
ZXQ_mul_by_X 32820
ZX_DDF 5075
ZX_divides 4469170
ZX_divides_i 4470380
ZX_factor 990
ZX_factor_i 1055
ZX_gcd 2416408
ZX_gcd_all 2848919
ZX_is_irred 3805
ZX_is_squarefree 7725
ZX_squff 3312
_gcd 2399451
chk_factors 20
chk_factors_get 80
cmbf 2485
cmbf_precs 2485
combine_factors 2485
fact_from_DDF 1055
factor_bound 3110
factor_quad 0
myconcat 1650
next2pow 0
nfrootsQ 413440
pick_prime 420340
polcyclofactors 225
poliscyclo 2225
poliscycloprod 735
root_bound 29915
shifteval 51545
special_pivot 40

Generated by: LCOV version 1.9