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 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.10.0 lcov report (development 22307-7f6745a) Lines: 719 750 95.9 %
Date: 2018-04-22 06:16:17 Functions: 41 42 97.6 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
BD_deg1 0
next2pow 14
LLL_cmbf 105
chk_factors 140
chk_factors_get 231
polcyclofactors 315
QX_factor 350
BD_odd 406
BD_odd_iscyclo 1022
poliscycloprod 1029
LLL_check_progress 1211
myconcat 2310
BD 2359
BD_iscyclo 4018
poliscyclo 5419
ZX_factor 5538
ZX_factor_i 5888
fact_from_DDF 5888
cmbf 6903
cmbf_precs 6903
combine_factors 6903
Beauzamy_bound 8513
Mignotte_bound 8513
factor_bound 8513
ZX_squff 14137
ZX_is_irred 16912
ZX_DDF 22184
DDF 30598
ZX_is_squarefree 32340
root_bound 46369
ZXQ_mul_by_X 46438
shifteval 79221
DDF_roots 582085
nfrootsQ 582085
ZX_radical 599572
pick_prime 612683
QX_gcd 3360193
_gcd 3360193
ZX_gcd 3422082
ZX_gcd_all 4053974
ZX_divides 6269468
ZX_divides_i 6273780

Generated by: LCOV version 1.11