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 17110-9967e23) Lines: 635 671 94.6 %
Date: 2014-11-26 Functions: 44 47 93.6 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 427 535 79.8 %

Function Name Sort by function name Hit count Sort by hit count
Buchquad 3660
FBquad 3685
GRH_ensure 5770
GRH_last_prime 4805
QFI_comp 4370435
QFR3_comp 718110
QFR5_comp 1235955
add_fact 304030
buchimag 0
buchreal 0
cache_prime_quad 74855
check_LIMC 130
clearhash 10480
compute_invresquad 3655
dbg_all 0
factorquad 1827438
gcdreal 22875
get_R 4790
get_clgp 3655
hash 1069020
imag_be_honest 5
imag_relations 3265
init_form 1130798
is_bad 19355
isless_iu 73056
largeprime 1069020
nthidealquad 3655
powsubFBquad 6795
qfi_factorback 27345
qfi_random 847318
qfr3_canon 831665
qfr3_canon_safe 2650
qfr3_pf 113540
qfr3_random 115095
qfr5_canon 1390915
qfr5_factorback 141030
qfr5_pf 154960
qfr5_rho_pow 157560
quadGRHchk 67515
quad_be_honest 3655
quadclassunit0 3660
random_form 962413
real_be_honest 5
real_relations 3660
subFBquad 3685
sub_fact 26670
trivial_relations 3655

Generated by: LCOV version 1.9