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.17.0 lcov report (development 29536-db03280b45) Lines: 773 801 96.5 %
Date: 2024-09-17 09:03:02 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 18396
_gcd 18396
invphi 19449
ZX_factor 49035
cmbf_precs 49243
cmbf 49245
combine_factors 49245
fact_from_DDF 49763
ZX_factor_i 49770
Beauzamy_bound 59714
Mignotte_bound 59714
factor_bound 59714
poliscyclo 98699
ZX_is_irred 100746
ZX_gcd_chinese 107014
root_bound 108747
ZX_gcd_filter 111942
ZX_DDF 150066
shifteval 181436
ZX_is_squarefree 195145
ZX_DDF_max 200645
ZX_squff 331696
DDF_roots 746595
nfrootsQ 746595
ZX_radical 912147
pick_prime 947240
ZX_gcd_slice 3336821
ZX_gcd_worker 3336821
ZX_gcd_Flx 3342729
ZX_divides 6534673
ZX_divides_i 6563192
ZX_gcd 9764562
ZX_gcd_all 11348140

Generated by: LCOV version 1.16