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 29115-f22e516b23) Lines: 652 684 95.3 %
Date: 2024-05-06 08:07:23 Functions: 49 53 92.5 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
Buchquad 4396
Buchquad_i 70432
FBquad 70391
GRH_ensure 399980
GRH_last_prime 0
QFI_comp 11753573
QFR3_comp 1007482
QFR5_comp 1735097
Z_isquasismooth_prod 5026414
add_fact 1885822
bnf_increase_LIMC 2350
buchimag 0
buchreal 0
cache_prime_quad 1173475
clearhash 169507
compute_invresquad 70257
crabs 54922
dbg_all 0
dist 184660
factorquad 5027201
gcdreal 33901
get_R 91205
get_clgp 70258
hash 2567259
imag_be_honest 7
imag_relations 98801
init_form 4052316
is_bad 391515
isless_iu 10416
largeprime 2567247
nthidealquad 70258
powsubFBquad 99120
qfi_factorback 159227
qfi_random 3534095
qfr3_canon 1166872
qfr3_canon_safe 3710
qfr3_pf 159362
qfr3_random 161539
qfr5_canon 1952657
qfr5_factorback 196987
qfr5_pf 217560
qfr5_rho_pow 220129
quadGRHchk 1032831
quad_be_honest 70254
quadclassno 61168
quadclassnos 4868
quadclassunit0 4396
random_form 3695618
real_be_honest 7
real_relations 5138
subFBquad 70387
sub_fact 97536
trivial_relations 70258

Generated by: LCOV version 1.14