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 to exceed 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.18.1 lcov report (development 29873-a0b27995a4) Lines: 773 801 96.5 %
Date: 2025-01-15 09:09:42 Functions: 44 45 97.8 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
BD 2359
BD_deg1 0
BD_odd 406
Beauzamy_bound 60200
DDF_roots 1621159
LLL_check_progress 1547
LLL_cmbf 126
Mignotte_bound 60200
QX_factor 777
QX_gcd 18699
ZX_DDF 151704
ZX_DDF_max 203357
ZX_divides 6544883
ZX_divides_i 6573542
ZX_factor 49609
ZX_factor_i 50386
ZX_gcd 9769165
ZX_gcd_Flx 3350885
ZX_gcd_all 13101515
ZX_gcd_chinese 110533
ZX_gcd_filter 115513
ZX_gcd_slice 3344917
ZX_gcd_worker 3344917
ZX_is_irred 101934
ZX_is_squarefree 197355
ZX_radical 2659513
ZX_squff 332480
_gcd 18700
chk_factors 140
chk_factors_get 350
cmbf 49707
cmbf_precs 49707
combine_factors 49707
fact_from_DDF 50379
factor_bound 60200
invphi 19488
myconcat 2310
next2pow 14
nfrootsQ 1621159
pick_prime 1824516
polcyclofactors 315
poliscyclo 98937
poliscycloprod 1029
root_bound 109944
shifteval 183416

Generated by: LCOV version 1.16