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.8.0 lcov report (development 18946-c0ba5ba) Lines: 567 622 91.2 %
Date: 2016-05-24 Functions: 61 64 95.3 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 412 527 78.2 %

Function Name Sort by function name Hit count Sort by hit count
BLS_test 63
BPSW_isprime 935953
BPSW_isprime_small 936379
BPSW_psp 4484339
BPSW_psp_nosmalldiv 14447
BPSW_try_PL 5008
Fl_MR_Jaeschke 1777
Fl_MR_Jaeschke_ok 990518
Fl_bad_for_base 5261266
Fl_init_MR_Jaeschke 5256459
IsLucasPsP 15356
LucasMod 15356
MR_Jaeschke 1922
MR_Jaeschke_ok 6971
PL_certificate 28
PL_certify 3075
addp 161
addp_union 28
addprimes 161
bad_for_base 79148
check_prime 49
cleanprimetab 21
gisprime 3570332
gispseudoprime 14
gprimepi_lower_bound 1
gprimepi_upper_bound 1
init_MR_Jaeschke 79018
is_2_prp_101 2084520
isanypower_nosmalldiv 7661
isprime 4237534
isprimePL 35
ispseudoprime 0
iu_coprime 269688
millerrabin 28
pl831 15231
prime 168
prime_successor 70
prime_table_closest_p 8790231
prime_table_find_n 161
prime_table_next_p 8790111
primepi 245
primepi_lower_bound 14
primepi_upper_bound 49625
primes 63
primes0 119
primes_interval 56
primes_interval_i 152
primes_interval_zv 33
primes_upto_zv 119
primes_zv 0
randomprime 49
removeprimes 28
rmprime 28
rmprimes 28
uBPSW_psp 3167806
u_2_prp 5253776
u_LucasMod 942746
uislucaspsp 942753
uisprime 15400677
uisprime_101 16481
uisprime_661 26393
uprime 0
uprimepi 9246
uu_coprime 20694188

Generated by: LCOV version 1.9