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 16804-345a01c) Lines: 709 765 92.7 %
Date: 2014-09-20 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 2359
BD_deg1 0
BD_iscyclo 2016
BD_odd 406
BD_odd_iscyclo 805
Beauzamy_bound 4431
DDF 9681
DDF_roots 578816
LLL_check_progress 469
LLL_cmbf 21
Mignotte_bound 4431
QX_factor 91
QX_gcd 3357761
ZXQ_mul_by_X 45948
ZX_DDF 7119
ZX_divides 6254266
ZX_divides_i 6256037
ZX_factor 1386
ZX_factor_i 1477
ZX_gcd 3381640
ZX_gcd_all 3986693
ZX_is_irred 5334
ZX_is_squarefree 10955
ZX_squff 4406
_gcd 3357761
chk_factors 28
chk_factors_get 112
cmbf 3486
cmbf_precs 3486
combine_factors 3486
fact_from_DDF 1477
factor_bound 4431
factor_quad 0
myconcat 2310
next2pow 0
nfrootsQ 578816
pick_prime 588497
polcyclofactors 315
poliscyclo 3122
poliscycloprod 1029
root_bound 41888
shifteval 72177
special_pivot 56

Generated by: LCOV version 1.9