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 17910-ca0bb25) Lines: 727 765 95.0 %
Date: 2015-07-07 Functions: 41 43 95.3 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 479 588 81.5 %

Function Name Sort by function name Hit count Sort by hit count
BD 2359
BD_deg1 0
BD_iscyclo 2142
BD_odd 406
BD_odd_iscyclo 861
Beauzamy_bound 5446
DDF 13538
DDF_roots 580699
LLL_check_progress 1330
LLL_cmbf 91
Mignotte_bound 5446
QX_factor 301
QX_gcd 3358615
ZXQ_mul_by_X 46060
ZX_DDF 9583
ZX_divides 6257696
ZX_divides_i 6259908
ZX_factor 2086
ZX_factor_i 2387
ZX_gcd 3385441
ZX_gcd_all 3995966
ZX_is_irred 7399
ZX_is_squarefree 13531
ZX_squff 5945
_gcd 3358615
chk_factors 119
chk_factors_get 266
cmbf 4424
cmbf_precs 4424
combine_factors 4424
fact_from_DDF 2387
factor_bound 5446
factor_quad 0
myconcat 2310
next2pow 14
nfrootsQ 580699
pick_prime 594237
polcyclofactors 315
poliscyclo 3408
poliscycloprod 1029
root_bound 43099
shifteval 74193
special_pivot 175

Generated by: LCOV version 1.9