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 - buch1.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.12.0 lcov report (development 23008-54b2e2f01) Lines: 634 669 94.8 %
Date: 2018-09-20 05:37:46 Functions: 44 47 93.6 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
buchimag 0
buchreal 0
dbg_all 0
imag_be_honest 7
real_be_honest 7
bnf_increase_LIMC 350
qfr3_canon_safe 3710
real_relations 5124
GRH_last_prime 16274
compute_invresquad 16274
get_clgp 16274
nthidealquad 16274
quad_be_honest 16274
trivial_relations 16274
Buchquad 16281
quadclassunit0 16281
FBquad 16449
subFBquad 16449
imag_relations 18688
get_R 19884
powsubFBquad 23176
gcdreal 32025
clearhash 39625
sub_fact 41962
qfi_factorback 47624
GRH_ensure 56473
isless_iu 73056
is_bad 80907
qfr3_pf 158956
qfr3_random 161133
qfr5_factorback 197442
qfr5_pf 216944
quadGRHchk 217588
qfr5_rho_pow 220584
cache_prime_quad 250311
add_fact 590334
QFR3_comp 1005354
qfr3_canon 1164331
qfi_random 1397793
hash 1557376
largeprime 1557376
random_form 1558926
QFR5_comp 1730337
init_form 1804104
qfr5_canon 1947281
factorquad 2779302
QFI_comp 6544242

Generated by: LCOV version 1.13