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 18946-c0ba5ba) Lines: 727 765 95.0 %
Date: 2016-05-26 Functions: 41 43 95.3 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 480 588 81.6 %

Function Name Sort by function name Hit count Sort by hit count
BD 2359
BD_deg1 0
BD_iscyclo 2562
BD_odd 406
BD_odd_iscyclo 889
Beauzamy_bound 5810
DDF 14910
DDF_roots 581973
LLL_check_progress 1330
LLL_cmbf 91
Mignotte_bound 5810
QX_factor 315
QX_gcd 3472981
ZXQ_mul_by_X 46116
ZX_DDF 10521
ZX_divides 6260881
ZX_divides_i 6263296
ZX_factor 2247
ZX_factor_i 2562
ZX_gcd 3501256
ZX_gcd_all 4115976
ZX_is_irred 8715
ZX_is_squarefree 14616
ZX_squff 7276
_gcd 3472981
chk_factors 119
chk_factors_get 266
cmbf 4711
cmbf_precs 4711
combine_factors 4711
fact_from_DDF 2562
factor_bound 5810
factor_quad 0
myconcat 2310
next2pow 14
nfrootsQ 581973
pick_prime 596883
polcyclofactors 315
poliscyclo 4325
poliscycloprod 1029
root_bound 44058
shifteval 75670
special_pivot 175

Generated by: LCOV version 1.9