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 16624-25b9976) Lines: 709 765 92.7 %
Date: 2014-06-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 1685
BD_deg1 0
BD_iscyclo 1440
BD_odd 290
BD_odd_iscyclo 575
Beauzamy_bound 3119
DDF 6916
DDF_roots 413440
LLL_check_progress 335
LLL_cmbf 15
Mignotte_bound 3119
QX_factor 65
QX_gcd 2399447
ZXQ_mul_by_X 32820
ZX_DDF 5091
ZX_divides 4469226
ZX_divides_i 4470436
ZX_factor 991
ZX_factor_i 1056
ZX_gcd 2416477
ZX_gcd_all 2849088
ZX_is_irred 3815
ZX_is_squarefree 7748
ZX_squff 3342
_gcd 2399447
chk_factors 20
chk_factors_get 80
cmbf 2494
cmbf_precs 2494
combine_factors 2494
fact_from_DDF 1056
factor_bound 3119
factor_quad 0
myconcat 1650
next2pow 0
nfrootsQ 413440
pick_prime 420356
polcyclofactors 225
poliscyclo 2235
poliscycloprod 735
root_bound 29924
shifteval 51556
special_pivot 40

Generated by: LCOV version 1.9