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.0 lcov report (development 29580-d8b649a849) Lines: 773 801 96.5 %
Date: 2024-10-04 09:07:15 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 59932
DDF_roots 1619948
LLL_check_progress 1547
LLL_cmbf 126
Mignotte_bound 59932
QX_factor 735
QX_gcd 18403
ZX_DDF 150310
ZX_DDF_max 200928
ZX_divides 6540908
ZX_divides_i 6569469
ZX_factor 49140
ZX_factor_i 49875
ZX_gcd 9765522
ZX_gcd_Flx 3347874
ZX_gcd_all 13094189
ZX_gcd_chinese 109512
ZX_gcd_filter 114446
ZX_gcd_slice 3341961
ZX_gcd_worker 3341960
ZX_is_irred 100879
ZX_is_squarefree 196045
ZX_radical 2657182
ZX_squff 331801
_gcd 18403
chk_factors 140
chk_factors_get 350
cmbf 49420
cmbf_precs 49420
combine_factors 49420
fact_from_DDF 49868
factor_bound 59932
invphi 19463
myconcat 2310
next2pow 14
nfrootsQ 1619953
pick_prime 1820874
polcyclofactors 315
poliscyclo 98791
poliscycloprod 1029
root_bound 109580
shifteval 182847

Generated by: LCOV version 1.16