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.12.0 lcov report (development 23171-a5c0ed393) Lines: 715 746 95.8 %
Date: 2018-10-20 05:38:07 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 252
polcyclofactors 315
QX_factor 371
BD_odd 406
BD_odd_iscyclo 1022
poliscycloprod 1029
LLL_check_progress 1225
myconcat 2310
BD 2359
BD_iscyclo 4046
poliscyclo 5489
ZX_factor 5832
fact_from_DDF 6196
ZX_factor_i 6203
cmbf 7239
cmbf_precs 7239
combine_factors 7239
Beauzamy_bound 8870
Mignotte_bound 8870
factor_bound 8870
ZX_is_irred 17563
ZX_DDF 23171
ZX_is_squarefree 31976
DDF 32439
ZXQ_mul_by_X 46438
root_bound 46922
ZX_squff 51419
shifteval 80222
DDF_roots 582561
nfrootsQ 582561
ZX_radical 600739
pick_prime 615000
QX_gcd 3360669
_gcd 3360669
ZX_gcd 3422299
ZX_gcd_all 4131413
ZX_divides 6274921
ZX_divides_i 6279338

Generated by: LCOV version 1.13