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 16624-25b9976) Lines: 640 671 95.4 %
Date: 2014-06-24 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 5460
GRH_last_prime 4490
QFI_comp 4368723
QFR3_comp 718742
QFR5_comp 1237031
add_fact 301525
buchimag 5
buchreal 5
cache_prime_quad 72040
check_LIMC 130
clearhash 9890
compute_invresquad 3365
dbg_all 0
factorquad 1826354
gcdreal 23120
get_R 4511
get_clgp 3365
hash 1069528
imag_be_honest 5
imag_relations 2958
init_form 1128869
is_bad 18135
isless_iu 67575
largeprime 1069528
nthidealquad 3365
powsubFBquad 6495
qfi_factorback 27222
qfi_random 845343
qfr3_canon 832486
qfr3_canon_safe 2655
qfr3_pf 113708
qfr3_random 115269
qfr5_canon 1392056
qfr5_factorback 141030
qfr5_pf 155025
qfr5_rho_pow 157604
quadGRHchk 65280
quad_be_honest 3365
quadclassunit0 3360
random_form 960612
real_be_honest 10
real_relations 3677
subFBquad 3395
sub_fact 26543
trivial_relations 3365

Generated by: LCOV version 1.9