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.16.1 lcov report (development 28676-df828f1c94) Lines: 647 682 94.9 %
Date: 2023-08-26 07:54:43 Functions: 47 51 92.2 %
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 2340
qfr3_canon_safe 3710
Buchquad 4396
quadclassunit0 4396
quadclassnos 4868
real_relations 5124
isless_iu 10186
gcdreal 32025
quadclassno 61167
quad_be_honest 70256
compute_invresquad 70257
nthidealquad 70257
trivial_relations 70257
get_clgp 70258
subFBquad 70389
FBquad 70391
Buchquad_i 70429
get_R 90966
sub_fact 97696
imag_relations 98726
powsubFBquad 99051
qfi_factorback 158837
qfr3_pf 158956
qfr3_random 161133
clearhash 169436
qfr5_factorback 197442
qfr5_pf 216944
qfr5_rho_pow 220584
is_bad 391533
GRH_ensure 399877
QFR3_comp 1005354
quadGRHchk 1032793
qfr3_canon 1164331
cache_prime_quad 1173430
QFR5_comp 1730337
add_fact 1885206
qfr5_canon 1947281
hash 2557744
largeprime 2557790
qfi_random 3526315
random_form 3687390
init_form 4044659
Z_isquasismooth_prod 5016546
factorquad 5017734
QFI_comp 11716491

Generated by: LCOV version 1.14