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 29821-ad8e616c7c) Lines: 773 801 96.5 %
Date: 2024-12-28 09:09:04 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 777
poliscycloprod 1029
LLL_check_progress 1547
myconcat 2310
BD 2359
QX_gcd 18657
_gcd 18657
invphi 19479
ZX_factor 49553
cmbf 49623
cmbf_precs 49623
combine_factors 49623
fact_from_DDF 50323
ZX_factor_i 50330
Beauzamy_bound 60115
Mignotte_bound 60117
factor_bound 60117
poliscyclo 98899
ZX_is_irred 101759
root_bound 109857
ZX_gcd_chinese 110440
ZX_gcd_filter 115374
ZX_DDF 151494
shifteval 183270
ZX_is_squarefree 197070
ZX_DDF_max 202984
ZX_squff 332424
nfrootsQ 1620873
DDF_roots 1620877
pick_prime 1823861
ZX_radical 2658862
ZX_gcd_slice 3344761
ZX_gcd_worker 3344761
ZX_gcd_Flx 3350675
ZX_divides 6544755
ZX_divides_i 6573408
ZX_gcd 9768833
ZX_gcd_all 13100400

Generated by: LCOV version 1.16