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.10.0 lcov report (development 20459-9710128) Lines: 719 750 95.9 %
Date: 2017-04-28 05:33:48 Functions: 41 42 97.6 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
BD 2022
BD_deg1 0
BD_iscyclo 2466
BD_odd 348
BD_odd_iscyclo 738
Beauzamy_bound 5844
DDF 14832
DDF_roots 498798
LLL_check_progress 930
LLL_cmbf 78
Mignotte_bound 5844
QX_factor 1080
QX_gcd 2877954
ZXQ_mul_by_X 39480
ZX_DDF 10680
ZX_divides 5362542
ZX_divides_i 5365308
ZX_factor 2142
ZX_factor_i 3222
ZX_gcd 2909316
ZX_gcd_all 3441732
ZX_is_irred 7914
ZX_is_squarefree 21330
ZX_radical 512856
ZX_squff 8124
_gcd 2877954
chk_factors 102
chk_factors_get 174
cmbf 4626
cmbf_precs 4626
combine_factors 4626
fact_from_DDF 3222
factor_bound 5844
myconcat 1980
next2pow 12
nfrootsQ 498798
pick_prime 513630
polcyclofactors 270
poliscyclo 3648
poliscycloprod 882
root_bound 38430
shifteval 65886

Generated by: LCOV version 1.11