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 17097-9391e68) Lines: 727 765 95.0 %
Date: 2014-11-21 Functions: 41 43 95.3 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 477 588 81.1 %

Function Name Sort by function name Hit count Sort by hit count
BD 1685
BD_deg1 0
BD_iscyclo 1430
BD_odd 290
BD_odd_iscyclo 575
Beauzamy_bound 3575
DDF 7890
DDF_roots 413565
LLL_check_progress 950
LLL_cmbf 65
Mignotte_bound 3575
QX_factor 50
QX_gcd 2398226
ZXQ_mul_by_X 32820
ZX_DDF 5700
ZX_divides 4468245
ZX_divides_i 4469745
ZX_factor 1415
ZX_factor_i 1465
ZX_gcd 2415403
ZX_gcd_all 2847808
ZX_is_irred 3935
ZX_is_squarefree 7960
ZX_squff 3519
_gcd 2398226
chk_factors 85
chk_factors_get 190
cmbf 2875
cmbf_precs 2875
combine_factors 2875
fact_from_DDF 1465
factor_bound 3575
factor_quad 0
myconcat 1650
next2pow 10
nfrootsQ 413565
pick_prime 421455
polcyclofactors 225
poliscyclo 2235
poliscycloprod 735
root_bound 30415
shifteval 52350
special_pivot 125

Generated by: LCOV version 1.9