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 17234-4181bc5) Lines: 635 671 94.6 %
Date: 2014-12-18 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 5124
FBquad 5159
GRH_ensure 8161
GRH_last_prime 6810
QFI_comp 6118607
QFR3_comp 1005354
QFR5_comp 1730337
add_fact 425642
buchimag 0
buchreal 0
cache_prime_quad 104797
check_LIMC 182
clearhash 14672
compute_invresquad 5117
dbg_all 0
factorquad 2558414
gcdreal 32025
get_R 6706
get_clgp 5117
hash 1496628
imag_be_honest 7
imag_relations 4571
init_form 1583118
is_bad 27097
isless_iu 73056
largeprime 1496628
nthidealquad 5117
powsubFBquad 9513
qfi_factorback 38283
qfi_random 1186246
qfr3_canon 1164331
qfr3_canon_safe 3710
qfr3_pf 158956
qfr3_random 161133
qfr5_canon 1947281
qfr5_factorback 197442
qfr5_pf 216944
qfr5_rho_pow 220584
quadGRHchk 94521
quad_be_honest 5117
quadclassunit0 5124
random_form 1347379
real_be_honest 7
real_relations 5124
subFBquad 5159
sub_fact 37338
trivial_relations 5117

Generated by: LCOV version 1.9