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-bordeaux.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 19350-bd5f220) Lines: 636 671 94.8 %
Date: 2016-08-24 06:11:24 Functions: 44 47 93.6 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
Buchquad 40956
FBquad 43112
GRH_ensure 52784
GRH_last_prime 40949
QFI_comp 6764939
QFR3_comp 1005354
QFR5_comp 1730337
add_fact 802032
buchimag 0
buchreal 0
cache_prime_quad 489858
check_LIMC 2310
clearhash 92317
compute_invresquad 40949
dbg_all 0
factorquad 2995953
gcdreal 32025
get_R 46153
get_clgp 40949
hash 1562244
imag_be_honest 7
imag_relations 45084
init_form 2021425
is_bad 213662
isless_iu 73056
largeprime 1562244
nthidealquad 40949
powsubFBquad 49205
qfi_factorback 48091
qfi_random 1613977
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 405797
quad_be_honest 40949
quadclassunit0 40956
random_form 1775110
real_be_honest 7
real_relations 5124
subFBquad 43112
sub_fact 42445
trivial_relations 40949

Generated by: LCOV version 1.11