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-bordeaux1.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.8.0 lcov report (development 16962-5a32637) Lines: 565 613 92.2 %
Date: 2014-10-29 Functions: 61 64 95.3 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 400 514 77.8 %

Function Name Sort by function name Hit count Sort by hit count
BLS_test 322
BPSW_isprime 448126
BPSW_isprime_big 4361
BPSW_isprime_small 453852
BPSW_psp 921143
BPSW_psp_nosmalldiv 15807
Fl_MR_Jaeschke 2349
Fl_MR_Jaeschke_ok 1603281
Fl_bad_for_base 6010991
Fl_init_MR_Jaeschke 6008684
IsLucasPsP 13644
LucasMod 13644
MR_Jaeschke 2590
MR_Jaeschke_ok 6155
addp 161
addp_union 28
addprimes 161
bad_for_base 67553
check_prime 5726
cleanprimetab 21
gisprime 1372
gispseudoprime 14
gprimepi_lower_bound 1
gprimepi_upper_bound 1
init_MR_Jaeschke 67354
is_2_prp_101 1907979
isanypower_nosmalldiv 7606
isprime 715073
isprimePL 686
isprimeSelfridge 2744
ispseudoprime 0
iu_coprime 226642
millerrabin 28
pl831 16555
prime 168
prime_successor 70
prime_table_closest_p 6096508
prime_table_find_n 161
prime_table_next_p 6096390
primepi 245
primepi_lower_bound 14
primepi_upper_bound 7553
primes 49
primes0 91
primes_interval 42
primes_interval_i 117
primes_interval_zv 26
primes_upto_zv 91
primes_zv 0
randomprime 49
removeprimes 28
rmprime 28
rmprimes 28
selfridge_init 679
uBPSW_psp 4098475
u_2_prp 6006335
u_LucasMod 2198023
uislucaspsp 2198030
uisprime 13822606
uisprime_101 16462
uisprime_661 26493
uprime 0
uprimepi 6453
uu_coprime 23172054

Generated by: LCOV version 1.9