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 17404-c89e0b8) Lines: 727 765 95.0 %
Date: 2015-01-30 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 2100
BD_odd 406
BD_odd_iscyclo 833
Beauzamy_bound 5390
DDF 13027
DDF_roots 580699
LLL_check_progress 1330
LLL_cmbf 91
Mignotte_bound 5390
QX_factor 175
QX_gcd 3357082
ZXQ_mul_by_X 46004
ZX_DDF 9261
ZX_divides 6255687
ZX_divides_i 6257899
ZX_factor 2072
ZX_factor_i 2247
ZX_gcd 3383327
ZX_gcd_all 3992641
ZX_is_irred 6853
ZX_is_squarefree 12992
ZX_squff 5455
_gcd 3357082
chk_factors 119
chk_factors_get 266
cmbf 4354
cmbf_precs 4354
combine_factors 4354
fact_from_DDF 2247
factor_bound 5390
factor_quad 0
myconcat 2310
next2pow 14
nfrootsQ 580699
pick_prime 593726
polcyclofactors 315
poliscyclo 3345
poliscycloprod 1029
root_bound 43029
shifteval 74046
special_pivot 175

Generated by: LCOV version 1.9