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.10.0 lcov report (development 22307-7f6745a) Lines: 624 687 90.8 %
Date: 2018-04-22 06:16:17 Functions: 70 73 95.9 %
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
primecertexport 21
millerrabin 28
removeprimes 28
rmprime 28
rmprimes 28
_isprimePL 35
addp_union 35
randomprime 49
BLS_test 56
primes 63
prime_successor 70
primecert 70
primecertisvalid 70
PL_certificate 84
PL_isvalid 84
cert_type 84
primes_interval 98
isprimePL 105
primes0 119
addp 168
addprimes 168
primes_upto_zv 182
prime_table_find_n 238
prime 245
primepi 252
pari_init_primetab 1566
Fl_MR_Jaeschke 1586
MR_Jaeschke 1713
PL_certify 3079
BPSW_try_PL 5051
primes_interval_zv 7194
primes_interval_i 7376
MR_Jaeschke_ok 7669
uprimepi 10023
pari_pthread_init_primetab 10493
pl831 15257
IsLucasPsP 17047
LucasMod 17047
isanypower_nosmalldiv 22358
uisprime_661 25795
u_LucasMod 33227
BPSW_psp_nosmalldiv 33487
primepi_upper_bound 57117
pari_thread_init_primetab 89735
init_MR_Jaeschke 103658
bad_for_base 103784
iu_coprime 289449
u_LucasMod_pre 1597739
uislucaspsp 1630973
Fl_MR_Jaeschke_ok 2060050
BPSW_isprime 2848195
BPSW_isprime_small 2848439
is_2_prp_101 3420501
uBPSW_psp 5707351
u_2_prp 9889688
Fl_init_MR_Jaeschke 9890811
Fl_bad_for_base 9892379
uisprime_101 11298000
prime_table_next_p 14887854
prime_table_closest_p 14888021
gisprime 23023398
isprime 23888652
BPSW_psp 24836250
uu_coprime 44902952
uisprime 46774080

Generated by: LCOV version 1.11