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 17727-c4b959b) Lines: 569 620 91.8 %
Date: 2015-04-21 Functions: 61 64 95.3 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 409 522 78.4 %

Function Name Sort by function name Hit count Sort by hit count
BLS_test 63
BPSW_isprime 947091
BPSW_isprime_big 7304
BPSW_isprime_small 951718
BPSW_psp 4445986
BPSW_psp_nosmalldiv 16672
Fl_MR_Jaeschke 1731
Fl_MR_Jaeschke_ok 1956133
Fl_bad_for_base 9094389
Fl_init_MR_Jaeschke 9087810
IsLucasPsP 13698
LucasMod 13698
MR_Jaeschke 1859
MR_Jaeschke_ok 6079
addp 161
addp_union 28
addprimes 161
bad_for_base 68060
check_prime 49
cleanprimetab 21
gisprime 3551499
gispseudoprime 14
gprimepi_lower_bound 1
gprimepi_upper_bound 1
init_MR_Jaeschke 67946
is_2_prp_101 2368817
isanypower_nosmalldiv 7742
isprime 4254053
isprimePL 35
isprimeSelfridge 5119
ispseudoprime 0
iu_coprime 230694
millerrabin 28
pl831 24023
prime 168
prime_successor 70
prime_table_closest_p 5723287
prime_table_find_n 161
prime_table_next_p 5723167
primepi 245
primepi_lower_bound 14
primepi_upper_bound 16819
primes 63
primes0 119
primes_interval 56
primes_interval_i 145
primes_interval_zv 33
primes_upto_zv 112
primes_zv 0
randomprime 49
removeprimes 28
rmprime 28
rmprimes 28
selfridge_init 28
uBPSW_psp 6714151
u_2_prp 9084803
u_LucasMod 2991978
uislucaspsp 2991985
uisprime 22484911
uisprime_101 16481
uisprime_661 29372
uprime 0
uprimepi 6516
uu_coprime 33790740

Generated by: LCOV version 1.9