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 17238-ce76349) Lines: 727 765 95.0 %
Date: 2014-12-20 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 2065
BD_odd 406
BD_odd_iscyclo 819
Beauzamy_bound 5208
DDF 12068
DDF_roots 580643
LLL_check_progress 1330
LLL_cmbf 91
Mignotte_bound 5208
QX_factor 140
QX_gcd 3357005
ZXQ_mul_by_X 45976
ZX_DDF 8736
ZX_divides 6253832
ZX_divides_i 6255960
ZX_factor 2030
ZX_factor_i 2170
ZX_gcd 3382550
ZX_gcd_all 3990597
ZX_is_irred 6391
ZX_is_squarefree 12348
ZX_squff 5322
_gcd 3357005
chk_factors 119
chk_factors_get 266
cmbf 4228
cmbf_precs 4228
combine_factors 4228
fact_from_DDF 2170
factor_bound 5208
factor_quad 0
myconcat 2310
next2pow 14
nfrootsQ 580643
pick_prime 592711
polcyclofactors 315
poliscyclo 3296
poliscycloprod 1029
root_bound 42875
shifteval 73787
special_pivot 175

Generated by: LCOV version 1.9