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 20777-d2a9243) Lines: 581 641 90.6 %
Date: 2017-06-25 05:59:24 Functions: 65 68 95.6 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
BLS_test 63
BPSW_isprime 2604009
BPSW_isprime_small 2604044
BPSW_psp 25875469
BPSW_psp_nosmalldiv 14435
BPSW_try_PL 5044
Fl_MR_Jaeschke 1691
Fl_MR_Jaeschke_ok 1520275
Fl_bad_for_base 5587930
Fl_init_MR_Jaeschke 5582430
IsLucasPsP 15794
LucasMod 15794
MR_Jaeschke 1853
MR_Jaeschke_ok 7141
PL_certificate 28
PL_certify 3079
addp 161
addp_union 28
addprimes 161
bad_for_base 87700
check_prime 49
cleanprimetab 21
gisprime 20926659
gispseudoprime 14
gprimepi_lower_bound 1
gprimepi_upper_bound 1
init_MR_Jaeschke 87541
is_2_prp_101 3184230
isanypower_nosmalldiv 7903
isprime 21754572
isprimePL 35
ispseudoprime 0
iu_coprime 339579
millerrabin 28
pari_init_primetab 1488
pari_pthread_init_primetab 4294
pari_thread_init_primetab 31884
pl831 15243
prime 168
prime_successor 70
prime_table_closest_p 12498910
prime_table_find_n 161
prime_table_next_p 12498696
primepi 252
primepi_lower_bound 14
primepi_upper_bound 56729
primes 63
primes0 119
primes_interval 98
primes_interval_i 7313
primes_interval_zv 7194
primes_upto_zv 119
primes_zv 0
randomprime 49
removeprimes 28
rmprime 28
rmprimes 28
uBPSW_psp 1586747
u_2_prp 5578731
u_LucasMod 34719
u_LucasMod_pre 455528
uislucaspsp 490254
uisprime 39154897
uisprime_101 7135404
uisprime_661 25902
uprime 0
uprimepi 9274
uu_coprime 30324285

Generated by: LCOV version 1.11