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 - buch1.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.10.0 lcov report (development 20459-9710128) Lines: 623 671 92.8 %
Date: 2017-03-30 05:32:39 Functions: 43 47 91.5 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
Buchquad 34890
FBquad 36738
GRH_ensure 46098
GRH_last_prime 34884
QFI_comp 5792512
QFR3_comp 861732
QFR5_comp 1483146
add_fact 685265
bnf_increase_LIMC 1980
buchimag 0
buchreal 0
cache_prime_quad 417588
clearhash 78689
compute_invresquad 34884
dbg_all 0
factorquad 2565584
gcdreal 27450
get_R 39335
get_clgp 34884
hash 1338866
imag_be_honest 6
imag_relations 38419
init_form 1730274
is_bad 182400
isless_iu 0
largeprime 1338866
nthidealquad 34884
powsubFBquad 41951
qfi_factorback 41189
qfi_random 1381065
qfr3_canon 997998
qfr3_canon_safe 3180
qfr3_pf 136248
qfr3_random 138114
qfr5_canon 1669098
qfr5_factorback 169236
qfr5_pf 185952
qfr5_rho_pow 189072
quadGRHchk 345966
quad_be_honest 34884
quadclassunit0 34890
random_form 1519179
real_be_honest 6
real_relations 4392
subFBquad 36738
sub_fact 36366
trivial_relations 34884

Generated by: LCOV version 1.11