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 17110-9967e23) Lines: 727 765 95.0 %
Date: 2014-11-26 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 3585
DDF 7910
DDF_roots 411645
LLL_check_progress 950
LLL_cmbf 65
Mignotte_bound 3585
QX_factor 50
QX_gcd 2398231
ZXQ_mul_by_X 32820
ZX_DDF 5720
ZX_divides 4468235
ZX_divides_i 4469735
ZX_factor 1415
ZX_factor_i 1465
ZX_gcd 2415488
ZX_gcd_all 2846023
ZX_is_irred 3950
ZX_is_squarefree 7990
ZX_squff 3524
_gcd 2398231
chk_factors 85
chk_factors_get 190
cmbf 2885
cmbf_precs 2885
combine_factors 2885
fact_from_DDF 1465
factor_bound 3585
factor_quad 0
myconcat 1650
next2pow 10
nfrootsQ 411645
pick_prime 419555
polcyclofactors 225
poliscyclo 2255
poliscycloprod 735
root_bound 30345
shifteval 52200
special_pivot 125

Generated by: LCOV version 1.9