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-bordeaux.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 19611-73a567d) Lines: 720 751 95.9 %
Date: 2016-09-27 05:54:40 Functions: 40 41 97.6 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
BD 2359
BD_deg1 0
BD_iscyclo 2373
BD_odd 406
BD_odd_iscyclo 840
Beauzamy_bound 6063
DDF 15464
DDF_roots 581994
LLL_check_progress 1330
LLL_cmbf 91
Mignotte_bound 6063
QX_factor 315
QX_gcd 3453441
ZXQ_mul_by_X 46018
ZX_DDF 10935
ZX_divides 6261511
ZX_divides_i 6264059
ZX_factor 2458
ZX_factor_i 2773
ZX_gcd 3481947
ZX_gcd_all 4098475
ZX_is_irred 8897
ZX_is_squarefree 16793
ZX_squff 8061
_gcd 3453441
chk_factors 119
chk_factors_get 266
cmbf 4887
cmbf_precs 4887
combine_factors 4887
fact_from_DDF 2773
factor_bound 6063
myconcat 2310
next2pow 14
nfrootsQ 581994
pick_prime 597458
polcyclofactors 315
poliscyclo 3647
poliscycloprod 1029
root_bound 44241
shifteval 75980

Generated by: LCOV version 1.11