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.16.2 lcov report (development 29115-f22e516b23) Lines: 772 800 96.5 %
Date: 2024-03-28 08:06:56 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 59502
DDF_roots 736941
LLL_check_progress 1547
LLL_cmbf 126
Mignotte_bound 59503
QX_factor 735
QX_gcd 13194
ZX_DDF 149631
ZX_DDF_max 200091
ZX_divides 6515879
ZX_divides_i 6544186
ZX_factor 48811
ZX_factor_i 49546
ZX_gcd 9756790
ZX_gcd_Flx 3333333
ZX_gcd_all 11292062
ZX_gcd_chinese 103526
ZX_gcd_filter 108454
ZX_gcd_slice 3327425
ZX_gcd_worker 3327425
ZX_is_irred 100555
ZX_is_squarefree 194956
ZX_radical 901069
ZX_squff 313120
_gcd 13195
chk_factors 140
chk_factors_get 350
cmbf 49119
cmbf_precs 49119
combine_factors 49119
fact_from_DDF 49539
factor_bound 59503
invphi 19340
myconcat 2310
next2pow 14
nfrootsQ 736941
pick_prime 937032
polcyclofactors 315
poliscyclo 98620
poliscycloprod 1029
root_bound 103644
shifteval 172714

Generated by: LCOV version 1.14