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 29463-1101ba1c32) Lines: 773 801 96.5 %
Date: 2024-07-22 09:03:30 Functions: 44 45 97.8 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
BD_deg1 0
next2pow 14
LLL_cmbf 126
chk_factors 140
polcyclofactors 315
chk_factors_get 350
BD_odd 406
QX_factor 735
poliscycloprod 1029
LLL_check_progress 1547
myconcat 2310
BD 2359
QX_gcd 18380
_gcd 18380
invphi 19438
ZX_factor 49027
cmbf 49225
cmbf_precs 49225
combine_factors 49225
fact_from_DDF 49757
ZX_factor_i 49762
Beauzamy_bound 59693
Mignotte_bound 59694
factor_bound 59694
poliscyclo 98655
ZX_is_irred 100701
ZX_gcd_chinese 107679
root_bound 108727
ZX_gcd_filter 112607
ZX_DDF 150010
shifteval 181377
ZX_is_squarefree 195038
ZX_DDF_max 200541
ZX_squff 331688
DDF_roots 746567
nfrootsQ 746567
ZX_radical 912003
pick_prime 947109
ZX_gcd_slice 3338846
ZX_gcd_worker 3338846
ZX_gcd_Flx 3344754
ZX_divides 6537392
ZX_divides_i 6565911
ZX_gcd 9765796
ZX_gcd_all 11349223

Generated by: LCOV version 1.16