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 - prime.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.12.0 lcov report (development 23171-a5c0ed393) Lines: 636 700 90.9 %
Date: 2018-10-20 05:38:07 Functions: 72 75 96.0 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
ispseudoprime 0
primes_zv 0
uprime 0
gprimepi_lower_bound 1
gprimepi_upper_bound 1
gispseudoprime 14
primepi_lower_bound 14
cleanprimetab 21
millerrabin 28
removeprimes 28
rmprime 28
rmprimes 28
_isprimePL 35
addp_union 35
check_eccpcert 49
primecertexport 49
primecertisvalid 49
randomprime 49
BLS_test 56
primes 63
prime_successor 70
primecert 70
PL_certificate 84
PL_isvalid 84
cert_type 91
isprimePL 105
primes_interval 105
primes0 119
addp 168
addprimes 168
primes_upto_zv 182
primepi 252
prime_table_find_n 266
prime 273
check_eccpcertentry 329
pari_init_primetab 1552
Fl_MR_Jaeschke 1581
MR_Jaeschke 1684
PL_certify 3077
BPSW_try_PL 5019
primes_interval_zv 7201
primes_interval_i 7383
MR_Jaeschke_ok 7640
uprimepi 9995
pari_pthread_init_primetab 11160
pl831 15251
IsLucasPsP 16945
LucasMod 16945
isanypower_nosmalldiv 22505
uisprime_661 25923
u_LucasMod 33436
BPSW_psp_nosmalldiv 33558
primepi_upper_bound 57278
init_MR_Jaeschke 102440
bad_for_base 102541
pari_thread_init_primetab 113538
iu_coprime 283641
is_2_prp_101 381798
BPSW_isprime_small 691394
BPSW_isprime 691510
Fl_MR_Jaeschke_ok 791437
gisprime 1082913
u_LucasMod_pre 1644038
uislucaspsp 1677481
isprime 1752455
BPSW_psp 2709868
uBPSW_psp 5849134
u_2_prp 6331243
Fl_bad_for_base 6331637
Fl_init_MR_Jaeschke 6332090
uisprime_101 6720467
prime_table_next_p 17846433
prime_table_closest_p 17846555
uisprime 20627276
uu_coprime 23878461

Generated by: LCOV version 1.13