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 16741-1378b1c) Lines: 640 671 95.4 %
Date: 2014-08-17 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 3370
FBquad 3395
GRH_ensure 5445
GRH_last_prime 4480
QFI_comp 4367435
QFR3_comp 718790
QFR5_comp 1237365
add_fact 301655
buchimag 5
buchreal 5
cache_prime_quad 72040
check_LIMC 130
clearhash 9895
compute_invresquad 3365
dbg_all 0
factorquad 1825350
gcdreal 22920
get_R 4490
get_clgp 3365
hash 1069435
imag_be_honest 5
imag_relations 2960
init_form 1128455
is_bad 18135
isless_iu 73056
largeprime 1069435
nthidealquad 3365
powsubFBquad 6500
qfi_factorback 27345
qfi_random 844685
qfr3_canon 832505
qfr3_canon_safe 2655
qfr3_pf 113685
qfr3_random 115245
qfr5_canon 1392510
qfr5_factorback 141175
qfr5_pf 155145
qfr5_rho_pow 157750
quadGRHchk 65280
quad_be_honest 3365
quadclassunit0 3360
random_form 959930
real_be_honest 10
real_relations 3670
subFBquad 3395
sub_fact 26680
trivial_relations 3365

Generated by: LCOV version 1.9