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 21348-d75f58f) Lines: 583 641 91.0 %
Date: 2017-11-20 06:21:05 Functions: 66 68 97.1 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
primes_zv 0
uprime 0
gprimepi_lower_bound 1
gprimepi_upper_bound 1
gispseudoprime 14
primepi_lower_bound 14
cleanprimetab 21
PL_certificate 28
addp_union 28
millerrabin 28
removeprimes 28
rmprime 28
rmprimes 28
isprimePL 35
check_prime 49
randomprime 49
BLS_test 63
primes 63
prime_successor 70
primes_interval 98
primes0 119
ispseudoprime 147
primes_upto_zv 154
addp 161
addprimes 161
prime_table_find_n 161
prime 168
primepi 252
pari_init_primetab 1538
Fl_MR_Jaeschke 1691
MR_Jaeschke 1853
PL_certify 3079
BPSW_try_PL 5044
primes_interval_zv 7194
primes_interval_i 7348
MR_Jaeschke_ok 7457
uprimepi 9274
pari_pthread_init_primetab 11790
pl831 15243
IsLucasPsP 16481
LucasMod 16481
isanypower_nosmalldiv 21973
uisprime_661 25913
BPSW_psp_nosmalldiv 30233
u_LucasMod 35619
primepi_upper_bound 56652
pari_thread_init_primetab 92525
init_MR_Jaeschke 102349
bad_for_base 102508
iu_coprime 326033
u_LucasMod_pre 1604986
uislucaspsp 1640612
Fl_MR_Jaeschke_ok 1981654
BPSW_isprime 2609358
BPSW_isprime_small 2609663
is_2_prp_101 3212127
uBPSW_psp 5751354
u_2_prp 9775191
Fl_init_MR_Jaeschke 9779144
Fl_bad_for_base 9787401
uisprime_101 11348702
prime_table_next_p 14499164
prime_table_closest_p 14499280
gisprime 20805676
isprime 21645974
BPSW_psp 24217021
uu_coprime 44763309
uisprime 46063384

Generated by: LCOV version 1.11