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-bordeaux1.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.8.0 lcov report (development 16827-3d78da8) Lines: 640 671 95.4 %
Date: 2014-09-29 Functions: 46 47 97.9 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 428 535 80.0 %

Function Name Sort by function name Hit count Sort by hit count
Buchquad 4718
FBquad 4753
GRH_ensure 7630
GRH_last_prime 6279
QFI_comp 6114409
QFR3_comp 1006306
QFR5_comp 1732311
add_fact 422317
buchimag 7
buchreal 7
cache_prime_quad 100856
check_LIMC 182
clearhash 13853
compute_invresquad 4711
dbg_all 0
factorquad 2555490
gcdreal 32088
get_R 6286
get_clgp 4711
hash 1497209
imag_be_honest 7
imag_relations 4144
init_form 1579837
is_bad 25389
isless_iu 73056
largeprime 1497209
nthidealquad 4711
powsubFBquad 9100
qfi_factorback 38283
qfi_random 1182559
qfr3_canon 1165507
qfr3_canon_safe 3717
qfr3_pf 159159
qfr3_random 161343
qfr5_canon 1949514
qfr5_factorback 197645
qfr5_pf 217203
qfr5_rho_pow 220850
quadGRHchk 91392
quad_be_honest 4711
quadclassunit0 4704
random_form 1343902
real_be_honest 14
real_relations 5138
subFBquad 4753
sub_fact 37352
trivial_relations 4711

Generated by: LCOV version 1.9