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 20777-d2a9243) Lines: 719 750 95.9 %
Date: 2017-06-25 05:59:24 Functions: 41 42 97.6 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
BD 2359
BD_deg1 0
BD_iscyclo 3143
BD_odd 406
BD_odd_iscyclo 861
Beauzamy_bound 7421
DDF 27357
DDF_roots 582512
LLL_check_progress 1099
LLL_cmbf 91
Mignotte_bound 7421
QX_factor 1799
QX_gcd 3361622
ZXQ_mul_by_X 46060
ZX_DDF 20203
ZX_divides 6264556
ZX_divides_i 6268147
ZX_factor 2542
ZX_factor_i 4341
ZX_gcd 3405850
ZX_gcd_all 4033633
ZX_is_irred 16282
ZX_is_squarefree 32375
ZX_radical 599075
ZX_squff 12303
_gcd 3361622
chk_factors 119
chk_factors_get 210
cmbf 5811
cmbf_precs 5811
combine_factors 5811
fact_from_DDF 4341
factor_bound 7421
myconcat 2310
next2pow 14
nfrootsQ 582512
pick_prime 609869
polcyclofactors 315
poliscyclo 4508
poliscycloprod 1029
root_bound 45599
shifteval 77870

Generated by: LCOV version 1.11