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 to exceed 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.12.1 lcov report (development 25080-049f395cf4) Lines: 631 667 94.6 %
Date: 2020-02-27 05:58:23 Functions: 43 47 91.5 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
GRH_last_prime 0
buchimag 0
buchreal 0
dbg_all 0
imag_be_honest 7
real_be_honest 7
bnf_increase_LIMC 854
qfr3_canon_safe 3710
real_relations 5124
compute_invresquad 16295
get_clgp 16295
nthidealquad 16295
quad_be_honest 16295
trivial_relations 16295
Buchquad 16323
quadclassunit0 16323
FBquad 16470
subFBquad 16470
imag_relations 18722
get_R 19932
powsubFBquad 23210
gcdreal 32025
clearhash 39680
sub_fact 41958
qfi_factorback 47614
isless_iu 73056
GRH_ensure 76145
is_bad 81005
qfr3_pf 158956
qfr3_random 161133
qfr5_factorback 197442
qfr5_pf 216944
quadGRHchk 217714
qfr5_rho_pow 220584
cache_prime_quad 250479
add_fact 590521
QFR3_comp 1005354
qfr3_canon 1164331
qfi_random 1397987
hash 1557367
largeprime 1557367
random_form 1559120
QFR5_comp 1730337
init_form 1804318
qfr5_canon 1947281
factorquad 2779486
QFI_comp 6544540

Generated by: LCOV version 1.13