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 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.11.0 lcov report (development 22860-5579deb0b) Lines: 639 703 90.9 %
Date: 2018-07-18 05:36:42 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 35
primecertexport 35
check_eccpcertentry 49
primecertisvalid 49
randomprime 49
BLS_test 56
primes 63
prime_successor 70
primecert 70
cert_type 77
PL_certificate 84
PL_isvalid 84
primes_interval 98
isprimePL 105
primes0 119
addp 168
addprimes 168
primes_upto_zv 182
primepi 252
prime_table_find_n 266
prime 273
pari_init_primetab 1545
Fl_MR_Jaeschke 1581
MR_Jaeschke 1684
PL_certify 3077
BPSW_try_PL 5019
primes_interval_zv 7194
primes_interval_i 7376
MR_Jaeschke_ok 7639
uprimepi 9995
pari_pthread_init_primetab 11066
pl831 15251
IsLucasPsP 16944
LucasMod 16944
isanypower_nosmalldiv 22491
uisprime_661 25917
BPSW_psp_nosmalldiv 33418
u_LucasMod 33438
primepi_upper_bound 57278
init_MR_Jaeschke 102527
bad_for_base 102628
pari_thread_init_primetab 112514
iu_coprime 283831
BPSW_isprime 803907
BPSW_isprime_small 803959
Fl_MR_Jaeschke_ok 1384322
u_LucasMod_pre 1632162
gisprime 1635007
uislucaspsp 1665607
is_2_prp_101 1744284
isprime 2327670
BPSW_psp 3277522
uBPSW_psp 5795953
Fl_bad_for_base 7790318
u_2_prp 7790399
Fl_init_MR_Jaeschke 7790959
uisprime_101 8846996
prime_table_next_p 14945152
prime_table_closest_p 14945273
uisprime 25370628
uu_coprime 31404736

Generated by: LCOV version 1.13