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.1 lcov report (development 28676-df828f1c94) Lines: 772 800 96.5 %
Date: 2023-08-26 07:54:43 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 59409
DDF_roots 736848
LLL_check_progress 1547
LLL_cmbf 126
Mignotte_bound 59410
QX_factor 728
QX_gcd 12958
ZX_DDF 149442
ZX_DDF_max 199668
ZX_divides 6501355
ZX_divides_i 6529686
ZX_factor 48835
ZX_factor_i 49563
ZX_gcd 9719604
ZX_gcd_Flx 3322210
ZX_gcd_all 10850503
ZX_gcd_chinese 99648
ZX_gcd_filter 104576
ZX_gcd_slice 3316303
ZX_gcd_worker 3316303
ZX_is_irred 100295
ZX_is_squarefree 194682
ZX_radical 898639
ZX_squff 112140
_gcd 12958
chk_factors 140
chk_factors_get 350
cmbf 49107
cmbf_precs 49107
combine_factors 49107
fact_from_DDF 49556
factor_bound 59410
invphi 19410
myconcat 2310
next2pow 14
nfrootsQ 736848
pick_prime 936515
polcyclofactors 315
poliscyclo 98918
poliscycloprod 1029
root_bound 103618
shifteval 172617

Generated by: LCOV version 1.14