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 21741-70cf009) Lines: 719 750 95.9 %
Date: 2018-01-21 06:18:30 Functions: 41 42 97.6 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
BD_deg1 0
next2pow 14
LLL_cmbf 91
chk_factors 119
chk_factors_get 210
QX_factor 294
polcyclofactors 315
BD_odd 406
BD_odd_iscyclo 1008
poliscycloprod 1029
LLL_check_progress 1099
myconcat 2310
BD 2359
BD_iscyclo 3990
ZX_factor 4992
ZX_factor_i 5286
fact_from_DDF 5286
poliscyclo 5383
cmbf 6553
cmbf_precs 6553
combine_factors 6553
Beauzamy_bound 8142
Mignotte_bound 8142
factor_bound 8142
ZX_squff 12870
ZX_is_irred 16324
ZX_DDF 20938
DDF 28575
ZX_is_squarefree 31528
root_bound 45991
ZXQ_mul_by_X 46410
shifteval 78612
DDF_roots 582183
nfrootsQ 582183
ZX_radical 599327
pick_prime 610758
QX_gcd 3360109
_gcd 3360109
ZX_gcd 3417847
ZX_gcd_all 4046960
ZX_divides 6262979
ZX_divides_i 6267221

Generated by: LCOV version 1.11