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 16375-9f41ae0) Lines: 720 776 92.8 %
Date: 2014-04-19 Functions: 40 43 93.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 456 590 77.3 %

Function Name Sort by function name Hit count Sort by hit count
BD 2359
BD_deg1 0
BD_iscyclo 1897
BD_odd 406
BD_odd_iscyclo 784
Beauzamy_bound 4297
DDF 9178
DDF_roots 576716
LLL_check_progress 469
LLL_cmbf 21
Mignotte_bound 4297
QX_factor 91
QX_gcd 3357715
ZXQ_mul_by_X 45906
ZX_DDF 6826
ZX_divides 6253720
ZX_divides_i 6255386
ZX_factor 1233
ZX_factor_i 1324
ZX_gcd 3381361
ZX_gcd_all 3979981
ZX_is_irred 5201
ZX_is_squarefree 10715
ZX_squff 2243
_gcd 3357715
chk_factors 28
chk_factors_get 112
cmbf 3443
cmbf_precs 3443
combine_factors 3443
fact_from_DDF 1324
factor_bound 4297
factor_quad 0
myconcat 2310
next2pow 0
nfrootsQ 576716
pick_prime 585894
polcyclofactors 315
poliscyclo 3024
poliscycloprod 1029
root_bound 41663
shifteval 72092
special_pivot 56

Generated by: LCOV version 1.9