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 29712-7c8a932571) Lines: 773 801 96.5 %
Date: 2024-11-15 09:08:45 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 770
poliscycloprod 1029
LLL_check_progress 1547
myconcat 2310
BD 2359
QX_gcd 18629
_gcd 18629
invphi 19544
ZX_factor 49553
cmbf 49623
cmbf_precs 49623
combine_factors 49623
fact_from_DDF 50316
ZX_factor_i 50323
Beauzamy_bound 60135
Mignotte_bound 60135
factor_bound 60135
poliscyclo 98901
ZX_is_irred 101747
ZX_gcd_chinese 109624
root_bound 109860
ZX_gcd_filter 114558
ZX_DDF 151487
shifteval 183291
ZX_is_squarefree 197105
ZX_DDF_max 202975
ZX_squff 332424
nfrootsQ 1621077
DDF_roots 1621089
pick_prime 1824064
ZX_radical 2659282
ZX_gcd_slice 3342243
ZX_gcd_worker 3342243
ZX_gcd_Flx 3348157
ZX_divides 6541351
ZX_divides_i 6570004
ZX_gcd 9766877
ZX_gcd_all 13098888

Generated by: LCOV version 1.16