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.2 lcov report (development 29454-e7b6e21fb9) Lines: 652 684 95.3 %
Date: 2024-07-18 09:03:47 Functions: 49 53 92.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 2376
qfr3_canon_safe 3710
Buchquad 4396
quadclassunit0 4396
quadclassnos 4938
real_relations 5138
isless_iu 10416
gcdreal 33901
crabs 54922
quadclassno 61172
quad_be_honest 70333
compute_invresquad 70335
get_clgp 70335
nthidealquad 70335
trivial_relations 70335
subFBquad 70466
FBquad 70468
Buchquad_i 70509
get_R 91188
sub_fact 97495
imag_relations 98824
powsubFBquad 99202
qfi_factorback 159058
qfr3_pf 159362
qfr3_random 161539
clearhash 169660
dist 184660
qfr5_factorback 196987
qfr5_pf 217560
qfr5_rho_pow 220129
is_bad 391828
GRH_ensure 400378
QFR3_comp 1007482
quadGRHchk 1033270
qfr3_canon 1166872
cache_prime_quad 1174061
QFR5_comp 1735097
add_fact 1886135
qfr5_canon 1952657
largeprime 2566373
hash 2566388
qfi_random 3533812
random_form 3695349
init_form 4051811
Z_isquasismooth_prod 5025941
factorquad 5026906
QFI_comp 11751495

Generated by: LCOV version 1.16