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 17403-69c3b04) Lines: 567 616 92.0 %
Date: 2015-01-27 Functions: 61 64 95.3 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 404 518 78.0 %

Function Name Sort by function name Hit count Sort by hit count
BLS_test 63
BPSW_isprime 448385
BPSW_isprime_big 7280
BPSW_isprime_small 452704
BPSW_psp 934015
BPSW_psp_nosmalldiv 16616
Fl_MR_Jaeschke 1725
Fl_MR_Jaeschke_ok 1803757
Fl_bad_for_base 8648858
Fl_init_MR_Jaeschke 8647175
IsLucasPsP 13616
LucasMod 13616
MR_Jaeschke 1841
MR_Jaeschke_ok 6044
addp 161
addp_union 28
addprimes 161
bad_for_base 67247
check_prime 49
cleanprimetab 21
gisprime 1379
gispseudoprime 14
gprimepi_lower_bound 1
gprimepi_upper_bound 1
init_MR_Jaeschke 67145
is_2_prp_101 1935884
isanypower_nosmalldiv 7700
isprime 715374
isprimePL 35
isprimeSelfridge 5117
ispseudoprime 0
iu_coprime 226709
millerrabin 28
pl831 24017
prime 168
prime_successor 70
prime_table_closest_p 5813103
prime_table_find_n 161
prime_table_next_p 5812985
primepi 245
primepi_lower_bound 14
primepi_upper_bound 8924
primes 63
primes0 112
primes_interval 49
primes_interval_i 124
primes_interval_zv 33
primes_upto_zv 91
primes_zv 0
randomprime 49
removeprimes 28
rmprime 28
rmprimes 28
selfridge_init 28
uBPSW_psp 6709685
u_2_prp 8645450
u_LucasMod 2990639
uislucaspsp 2990646
uisprime 18934427
uisprime_101 16481
uisprime_661 29177
uprime 0
uprimepi 6453
uu_coprime 31236887

Generated by: LCOV version 1.9